Closed SuGuilin closed 1 year ago
As temporary fix, run the command zipline ingest -b ETF_ 2021_ 08_ 30_ 1990_ to_ 2020_ Etf2005 --no-show-progress
instead.
I have this exact issue. When I add the --no-show-progress flag I get:
zipline ingest -b custom-csvdir-bundle --no-show-progress
[2023-05-01T17:30:04+0800-INFO][zipline.data.bundles.core]
Ingesting custom-csvdir-bundle
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/high/data
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/close/data
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/low/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/__rootdirs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/id/data
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/day/data
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/volume/data
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/__attrs__ -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/meta/storage -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/meta
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/meta/sizes -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/meta
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/data/__0.blp -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/daily_equities.bcolz/open/data
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/adjustments.sqlite -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112
[2023-05-01T17:30:04+0800-INFO][root]
creating /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/minute_equities.bcolz
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/minute_equities.bcolz/metadata.json -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112/minute_equities.bcolz
[2023-05-01T17:30:04+0800-INFO][root]
copying /var/folders/0t/wzdbfj4x15vd_nw6bg3wvnrm0000gn/T/tmpd88a5q7z/custom-csvdir-bundle/2023-05-01T09;30;04.360112/assets-7.sqlite -> /Users/amh17/.zipline/data/custom-csvdir-bundle/2023-05-01T09;30;04.360112
Now I have the bundle folder:
when trying to run the tutorial.ipynb file line:
!zipline run -f /Users/amh17/Documents/PyQuant/zipline-reloaded/src/zipline/examples/buyapple.py --start 2019-2-1 --end 2022-2-1 -o buynvda_out.pickle --no-ben
I just get:
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Cannot place order for NVDA, as it has de-listed. Any existing positions for this asset will be liquidated on 2018-03-28 00:00:00.
[2023-05-01T18:02:11+0800-WARNING][ZiplineLog]
Thereafter any of the functions of the tutorial.ipynb file offer null results.
2019-02-01 14:31:00+00:00 | 2019-02-01 21:00:00+00:00 | 0 | [] | 0.0 | 0 | [] | 0.0 | 0.0 | 0.0 | ... | None | 0.0 | 0.0 | NaN | 0.0 | 0.0 | 0.0 | 1 | NaN | 2019-02
2019-02-04 14:31:00+00:00 | 2019-02-04 21:00:00+00:00 | 0 | [] | 0.0 | 0 | [] | 0.0 | 0.0 | 0.0 | ... | None | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2 | 0.0 | 2019-02
2019-02-05 14:31:00+00:00 | 2019-02-05 21:00:00+00:00 | 0 | [] | 0.0 | 0 | [] | 0.0 | 0.0 | 0.0 | ... | None | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 3 | 0.0 | 2019-02
2019-02-06 14:31:00+00:00 | 2019-02-06 21:00:00+00:00 | 0 | [] | 0.0 | 0 | [] | 0.0 | 0.0 | 0.0 | ... | None | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 4 | 0.0 | 2019-02
2019-02-07 14:31:00+00:00 | 2019-02-07 21:00:00+00:00 | 0 | [] | 0.0 | 0 | [] | 0.0 | 0.0 | 0.0 | ... | None
Is there another method to ingesting custom csv data, registering it and then performing calculations?
Thanks!
As a temporary fix, I did the following. It works for me as of July 2, 2023.
import pandas as pd
from zipline.data.bundles import register
from zipline.data.bundles.csvdir import csvdir_equities
start_session = pd.Timestamp('2003-07-07')
end_session = None
register(
'custom-csvdir-bundle',
csvdir_equities(
['daily'],
'/path/to/csv/files/not-including-daily-folder/',
),
calendar_name='NYSE', # US equities
start_session=start_session,
end_session=end_session
)
Thanks for sharing your workaround!
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Now that you know a little about me, let me tell you about the issue I am having:
Description of Issue
Here is how you can reproduce this issue on your machine:
Reproduction Steps
I downloaded the historical data of 32 ETFs on Yahoo Finance and processed them in the form of date, open, high, low, close, volume, divided, and split. I would like to customize the bundle. The extension. py is as follows:
When I run the command zipline ingest - b ETF 2021 08 30 1990 to 2020_ Etf2005, the following error occurred
Sincerely,
$ whoami