from zipline.data.bundles import loadbundle_data = load('etf-bundle')
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
<ipython-input-28-f920ad063485> in <module>()
1 from zipline.data.bundles import load
----> 2 bundle_data = load('etf-bundle')
G:\Anaconda3\lib\site-packages\zipline\data\bundles\core.py in load(name, environ, timestamp)
514 return BundleData(
515 asset_finder=AssetFinder(
--> 516 asset_db_path(name, timestr, environ=environ),
517 ),
518 equity_minute_bar_reader=BcolzMinuteBarReader(
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in __init__(self, engine)
146 def __init__(self, engine):
147 self.engine = engine
--> 148 metadata = sa.MetaData(bind=engine)
149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in __init__(self, engine)
147 self.engine = engine
148 metadata = sa.MetaData(bind=engine)
--> 149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
151 setattr(self, table_name, metadata.tables[table_name])
G:\Anaconda3\lib\site-packages\sqlalchemy\sql\schema.py in reflect(self, bind, schema, views, only, extend_existing, autoload_replace, **dialect_kwargs)
3648 'Could not reflect: requested table(s) not available '
3649 'in %s%s: (%s)' %
-> 3650 (bind.engine.url, s, ', '.join(missing)))
3651 load = [name for name in only if extend_existing or
3652 name not in current]
InvalidRequestError: Could not reflect: requested table(s) not available in sqlite:///C:\Users\scuba/.zipline\data\etf-bundle\2016-10-27T11;16;23.777396\assets-5.sqlite: (futures_exchanges, futures_contracts, equity_symbol_mappings, futures_root_symbols, equities, asset_router, version_info)
--
You received this message because you are subscribed to the Google Groups "Zipline Python Opensource Backtester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
from zipline.data.bundles.yahoo import register, load, yahoo_equities
equities = {'VHT', 'IEO', 'VFH', 'IYJ', 'GWL', 'CWB', 'VTWO', 'BSCI', 'UNL', 'IEZ', 'FXY', 'XLV', 'PSCC', 'TLO', 'INKM', 'SCHF', 'OUNZ', 'IYH', 'KBWB', 'XLI', 'SST', 'IGV', 'VBK', 'BZF', 'SCHB', 'IEF', 'IYW', 'IWO', 'SCHP', 'AMU', 'EFA', 'AMLP', 'PSCT', 'IWB', 'VNQ', 'OIL', 'GSG', 'SBIO', 'XTN', 'EWI', 'WDTI', 'AFK', 'PSCU', 'SCHZ', 'ITA', 'FHLC', 'XLP', 'IYR', 'ITE', 'XLK', 'VO', 'IDU', 'IWN', 'EWP', 'MCHI', 'EWQ', 'PSCD', 'BNO', 'OILX', 'DCNG', 'EIRL', 'FLRT', 'CEW', 'IHE', 'SCHO', 'EPU', 'BNDS', 'ONEK', 'FYT', 'USV', 'IPE', 'TWOK', 'FXCH', 'FXS', 'RWR', 'PKB', 'PSCH', 'EWY', 'GSP', 'BKLN', 'XES', 'VDE', 'VONE', 'CNCR', 'SLV', 'FXA', 'SLQD', 'PXQ', 'FMAT', 'FIDU', 'JNK', 'SCHH', 'VEA', 'PBJ', 'FNY', 'EPRF', 'CSJ', 'DIA', 'GYLD', 'UUP', 'BCM', 'SPY', 'JKK', 'TUZ', 'XRT', 'PXMV', 'FXC', 'SCHA', 'PSCI', 'HYG', 'PSCF', 'IWF', 'USAG', 'EWS', 'IYE', 'VTV', 'GREK', 'JKE', 'FTLS', 'IYF', 'IXJ', 'XHB', 'RFG', 'DBS', 'FDIS', 'EEM', 'HYXE', 'PBS', 'JKL', 'PSK', 'CVY', 'IVOO', 'IYZ', 'FENY', 'PJP', 'VCSH', 'VTHR', 'EZU', 'IEFA', 'TIPZ', 'SNLN', 'XHE', 'VIXY', 'AOM', 'PSCE', 'IAI', 'FNK', 'MDY', 'XLU', 'VV', 'IEMG', 'UDN', 'IWP', 'AGG', 'FNCL', 'ICVT', 'ARKG', 'IVV', 'EWW', 'IWV', 'DWIN', 'GAZ', 'VTI', 'XTL', 'IEI', 'VB', 'VTWV', 'SCHM', 'XLFS', 'IWS', 'VTWG', 'FTA', 'PGX', 'CUPM', 'CPER', 'JJC', 'SLY', 'PFXF', 'VBR', 'REZ', 'QAI', 'FSTA', 'YLD', 'IWD', 'FXE', 'IYC', 'WBIH', 'IWR', 'EWC', 'AGF', 'DBA', 'CMBS', 'GSC', 'IHF', 'XLE', 'ICN', 'MGK', 'XHS', 'EWU', 'DIRT', 'VOX', 'XME', 'MNA', 'SCHE', 'TIP', 'PNQI', 'CSCR', 'XLF', 'IJK', 'CYB', 'IJR', 'GMM', 'VPU', 'MLPI', 'MLPB', 'EDV', 'PEJ', 'VIS', 'XSD', 'AMJ', 'PSCM', 'PWV', 'PGF', 'SGOL', 'SCPB', 'QQQ', 'ITB', 'EZA', 'EWA', 'VCR', 'LNGR', 'IJJ', 'UNG', 'FYC', 'THRK', 'WBII', 'AOK', 'PFF', 'AMUB', 'PPA', 'BSCH', 'VAW', 'USO', 'SOXX', 'GAL', 'PMR', 'IYM', 'PXE', 'PSI', 'KRE', 'FTEC', 'FUTY', 'VOO', 'EWG', 'TLH', 'BND', 'IYK', 'FDN', 'VONG', 'ZROZ', 'XAR', 'PCEF', 'IYT', 'EGPT', 'ERUS', 'IAU', 'VIXM', 'XLRE', 'KCE', 'TLT', 'YYY', 'EWM', 'USCI', 'AOA', 'KBE', 'EIS', 'SCHX', 'XLY', 'IYLD', 'MDIV', 'FXF', 'PXSV', 'IJH', 'XPH', 'JKI', 'XWEB', 'SCHR', 'SCHV', 'DBC', 'VWO', 'SHY', 'VOE', 'BKF', 'SIVR', 'PXJ', 'INDA', 'VGT', 'VUG', 'IJT', 'OIIL', 'GLD', 'COMT', 'IAT', 'DBEF', 'XOP', 'VDC', 'IYG', 'FREL', 'KBWR', 'EWJ', 'SCHG', 'JKH', 'IHI', 'SLVO', 'QABA', 'FCOM', 'FXB', 'FXSG', 'ITOT', 'XLB', 'VOT', 'SBV', 'MGV', 'IWM', 'AOR', 'IBB'}
register('etf_bundle', yahoo_equities(equities))
bundle = load('etf_bundle')
Regards,
Ed
from
zipline.data.bundles.yahoo import register, load, yahoo_equitiesequities = {'VHT', 'IEO', 'VFH', 'IYJ', 'GWL', 'CWB', 'VTWO', 'BSCI', 'UNL', 'IEZ', 'FXY', 'XLV', 'PSCC', 'TLO', 'INKM', 'SCHF', 'OUNZ', 'IYH', 'KBWB', 'XLI', 'SST', 'IGV', 'VBK', 'BZF', 'SCHB', 'IEF', 'IYW', 'IWO', 'SCHP', 'AMU', 'EFA', 'AMLP', 'PSCT', 'IWB', 'VNQ', 'OIL', 'GSG', 'SBIO', 'XTN', 'EWI', 'WDTI', 'AFK', 'PSCU', 'SCHZ', 'ITA', 'FHLC', 'XLP', 'IYR', 'ITE', 'XLK', 'VO', 'IDU', 'IWN', 'EWP', 'MCHI', 'EWQ', 'PSCD', 'BNO', 'OILX', 'DCNG', 'EIRL', 'FLRT', 'CEW', 'IHE', 'SCHO', 'EPU', 'BNDS', 'ONEK', 'FYT', 'USV', 'IPE', 'TWOK', 'FXCH', 'FXS', 'RWR', 'PKB', 'PSCH', 'EWY', 'GSP', 'BKLN', 'XES', 'VDE', 'VONE', 'CNCR', 'SLV', 'FXA', 'SLQD', 'PXQ', 'FMAT', 'FIDU', 'JNK', 'SCHH', 'VEA', 'PBJ', 'FNY', 'EPRF', 'CSJ', 'DIA', 'GYLD', 'UUP', 'BCM', 'SPY', 'JKK', 'TUZ', 'XRT', 'PXMV', 'FXC', 'SCHA', 'PSCI', 'HYG', 'PSCF', 'IWF', 'USAG', 'EWS', 'IYE', 'VTV', 'GREK', 'JKE', 'FTLS', 'IYF', 'IXJ', 'XHB', 'RFG', 'DBS', 'FDIS', 'EEM', 'HYXE', 'PBS', 'JKL', 'PSK', 'CVY', 'IVOO', 'IYZ', 'FENY', 'PJP', 'VCSH', 'VTHR', 'EZU', 'IEFA', 'TIPZ', 'SNLN', 'XHE', 'VIXY', 'AOM', 'PSCE', 'IAI', 'FNK', 'MDY', 'XLU', 'VV', 'IEMG', 'UDN', 'IWP', 'AGG', 'FNCL', 'ICVT', 'ARKG', 'IVV', 'EWW', 'IWV', 'DWIN', 'GAZ', 'VTI', 'XTL', 'IEI', 'VB', 'VTWV', 'SCHM', 'XLFS', 'IWS', 'VTWG', 'FTA', 'PGX', 'CUPM', 'CPER', 'JJC', 'SLY', 'PFXF', 'VBR', 'REZ', 'QAI', 'FSTA', 'YLD', 'IWD', 'FXE', 'IYC', 'WBIH', 'IWR', 'EWC', 'AGF', 'DBA', 'CMBS', 'GSC', 'IHF', 'XLE', 'ICN', 'MGK', 'XHS', 'EWU', 'DIRT', 'VOX', 'XME', 'MNA', 'SCHE', 'TIP', 'PNQI', 'CSCR', 'XLF', 'IJK', 'CYB', 'IJR', 'GMM', 'VPU', 'MLPI', 'MLPB', 'EDV', 'PEJ', 'VIS', 'XSD', 'AMJ', 'PSCM', 'PWV', 'PGF', 'SGOL', 'SCPB', 'QQQ', 'ITB', 'EZA', 'EWA', 'VCR', 'LNGR', 'IJJ', 'UNG', 'FYC', 'THRK', 'WBII', 'AOK', 'PFF', 'AMUB', 'PPA', 'BSCH', 'VAW', 'USO', 'SOXX', 'GAL', 'PMR', 'IYM', 'PXE', 'PSI', 'KRE', 'FTEC', 'FUTY', 'VOO', 'EWG', 'TLH', 'BND', 'IYK', 'FDN', 'VONG', 'ZROZ', 'XAR', 'PCEF', 'IYT', 'EGPT', 'ERUS', 'IAU', 'VIXM', 'XLRE', 'KCE', 'TLT', 'YYY', 'EWM', 'USCI', 'AOA', 'KBE', 'EIS', 'SCHX', 'XLY', 'IYLD', 'MDIV', 'FXF', 'PXSV', 'IJH', 'XPH', 'JKI', 'XWEB', 'SCHR', 'SCHV', 'DBC', 'VWO', 'SHY', 'VOE', 'BKF', 'SIVR', 'PXJ', 'INDA', 'VGT', 'VUG', 'IJT', 'OIIL', 'GLD', 'COMT', 'IAT', 'DBEF', 'XOP', 'VDC', 'IYG', 'FREL', 'KBWR', 'EWJ', 'SCHG', 'JKH', 'IHI', 'SLVO', 'QABA', 'FCOM', 'FXB', 'FXSG', 'ITOT', 'XLB', 'VOT', 'SBV', 'MGV', 'IWM', 'AOR', 'IBB'}
register('etf_bundle', yahoo_equities(equities))
bundle = load('etf_bundle')
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--BR,
Ed
See if the solution in this post helps.
https://www.quantopian.com/posts/newbie-with-zipline#57debaab153bf1148c000b11
Richard
!zipline bundles
OUT:
etf_bundle 2016-10-30 07:20:30.523369
etf_bundle 2016-10-29 13:44:58.776082
etf_bundle 2016-10-28 05:22:53.139970
quandl 2016-10-25 10:04:06.739478
quantopian-quandl 2016-10-29 13:24:44.019124
yahoo_bundle 2016-10-25 14:05:26.257039
yahoo_bundle 2016-10-25 13:16:19.252465
funds = set([ 'VTSMX','VTSAX','VFINX','VFIAX','VIVAX','VVIAX','VIGRX','VIGAX','VIMSX','VIMAX','VMGIX', 'VMGMX','VMVIX','VMVAX','NAESX','VSMAX','VISVX','VSIAX','VISGX','VSGAX','BRSIX','VGSIX', 'VGSLX','VGTSX','VTIAX','VTMGX','VTMGX','VEIEX','VEMAX','VEURX','VEUSX','VPACX','VPADX', 'VTRIX','EFV','VFSVX','VBMFX','VBTLX','VFISX','VFIRX','VFITX','VUSTX','VUSUX','VIPSX','VAIPX', 'VWSTX','VWSUX','VWITX','VWIUX','VWLTX','VWLUX','VICSX','VWESX','VWETX','VWEHX','VWEAX','VFSTX', 'VFSUX','PIGLX','VGPMX','PCRI' ])
from zipline.data.bundles.yahoo import register, yahoo_equities
register('fund_bundle', yahoo_equities(funds))
<function zipline.data.bundles.yahoo.yahoo_equities.<locals>.ingest>
!zipline bundles
etf_bundle 2016-10-30 07:20:30.523369
etf_bundle 2016-10-29 13:44:58.776082
etf_bundle 2016-10-28 05:22:53.139970
quandl 2016-10-25 10:04:06.739478
quantopian-quandl 2016-10-29 13:24:44.019124
yahoo_bundle 2016-10-25 14:05:26.257039
yahoo_bundle 2016-10-25 13:16:19.252465
from zipline.data.bundles import load
bundle_data = load('fund_bundle')
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
<ipython-input-7-266004c14999> in <module>()
1 from zipline.data.bundles import load
----> 2 bundle_data = load('fund_bundle')
G:\Anaconda3\lib\site-packages\zipline\data\bundles\core.py in
load(name, environ, timestamp)
514 return BundleData(
515 asset_finder=AssetFinder(
--> 516 asset_db_path(name, timestr, environ=environ),
517 ),
518 equity_minute_bar_reader=BcolzMinuteBarReader(
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in
__init__(self, engine)
146 def __init__(self, engine):
147 self.engine = engine
--> 148 metadata = sa.MetaData(bind=engine)
149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in
__init__(self, engine)
147 self.engine = engine
148 metadata = sa.MetaData(bind=engine)
--> 149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
151 setattr(self, table_name, metadata.tables[table_name])
G:\Anaconda3\lib\site-packages\sqlalchemy\sql\schema.py in
reflect(self, bind, schema, views, only, extend_existing, autoload_replace, **dialect_kwargs)
3648 'Could not reflect: requested table(s) not available '
3649 'in %s%s: (%s)' %
-> 3650 (bind.engine.url, s, ', '.join(missing)))
3651 load = [name for name in only if extend_existing or
3652 name not in current]
InvalidRequestError: Could not reflect: requested table(s) not available in sqlite:///C:\Users\scuba/.zipline\data\fund_bundle\2016-10-30T09;11;42.667560\assets-5.sqlite: (futures_root_symbols, futures_contracts, equity_symbol_mappings, equities, version_info, futures_exchanges, asset_router)
funds = set(['VTSMX','VTSAX','VFINX','VFIAX','VIVAX','VVIAX','VIGRX','VIGAX','VIMSX','VIMAX','VMGIX','VMGMX','VMVIX', 'VMVAX','NAESX','VSMAX','VISVX','VSIAX','VISGX','VSGAX','BRSIX','VGSIX','VGSLX','VGTSX','VTIAX','VTMGX','VTMGX', 'VEIEX','VEMAX','VEURX','VEUSX','VPACX','VPADX','VTRIX','EFV','VFSVX','VBMFX','VBTLX','VFISX','VFIRX','VFITX','VUSTX' ,'VUSUX','VIPSX','VAIPX','VWSTX','VWSUX','VWITX','VWIUX','VWLTX','VWLUX','VICSX','VWESX','VWETX','VWEHX','VWEAX', 'VFSTX','VFSUX','PIGLX','VGPMX','PCRIX'])
register( 'fund_bundle', yahoo_equities(equities),)
!zipline bundles
etf_bundle 2016-10-30 07:20:30.523369
etf_bundle 2016-10-29 13:44:58.776082
etf_bundle 2016-10-28 05:22:53.139970
fund_bundle <no ingestions>
quandl 2016-10-25 10:04:06.739478
quantopian-quandl 2016-10-29 13:24:44.019124
yahoo_bundle 2016-10-25 14:05:26.257039
yahoo_bundle 2016-10-25 13:16:19.252465
zipline ingest -b fund_bundle
etf_bundle 2016-10-30 07:20:30.523369
etf_bundle 2016-10-29 13:44:58.776082
etf_bundle 2016-10-28 05:22:53.139970
fund_bundle 2016-10-30 10:03:42.188459
quandl 2016-10-25 10:04:06.739478
quantopian-quandl 2016-10-29 13:24:44.019124
yahoo_bundle 2016-10-25 14:05:26.257039
yahoo_bundle 2016-10-25 13:16:19.252465
bundle_data = load('fund_bundle')
---------------------------------------------------------------------------
UnknownBundle Traceback (most recent call last)
<ipython-input-2-266004c14999> in <module>()
1 from zipline.data.bundles import load
----> 2 bundle_data = load('fund_bundle')
G:\Anaconda3\lib\site-packages\zipline\data\bundles\core.py in
load(name, environ, timestamp)
511 if timestamp is None:
512 timestamp = pd.Timestamp.utcnow()
--> 513 timestr = most_recent_data(name, timestamp, environ=environ)
514 return BundleData(
515 asset_finder=AssetFinder(
G:\Anaconda3\lib\site-packages\zipline\data\bundles\core.py in most_recent_data(bundle_name, timestamp, environ)
466 """
467 if bundle_name not in bundles:
--> 468 raise UnknownBundle(bundle_name)
469
470 try:
UnknownBundle: No bundle registered with the name 'fund_bundle'
funds = set(['VTSMX','VTSAX','VFINX','VFIAX','VIVAX','VVIAX','VIGRX','VIGAX','VIMSX','VIMAX','VMGIX','VMGMX','VMVIX', 'VMVAX','NAESX','VSMAX','VISVX','VSIAX','VISGX','VSGAX','BRSIX','VGSIX','VGSLX','VGTSX','VTIAX','VTMGX','VTMGX', 'VEIEX','VEMAX','VEURX','VEUSX','VPACX','VPADX','VTRIX','EFV','VFSVX','VBMFX','VBTLX','VFISX','VFIRX','VFITX','VUSTX' ,'VUSUX','VIPSX','VAIPX','VWSTX','VWSUX','VWITX','VWIUX','VWLTX','VWLUX','VICSX','VWESX','VWETX','VWEHX','VWEAX', 'VFSTX','VFSUX','PIGLX','VGPMX','PCRIX'])
register( 'fund_bundle', yahoo_equities(equities),)
<function zipline.data.bundles.yahoo.yahoo_equities.<locals>.ingest>
!zipline bundles
etf_bundle 2016-10-30 07:20:30.523369
etf_bundle 2016-10-29 13:44:58.776082
etf_bundle 2016-10-28 05:22:53.139970
fund_bundle 2016-10-30 10:03:42.188459
quandl 2016-10-25 10:04:06.739478
quantopian-quandl 2016-10-29 13:24:44.019124
yahoo_bundle 2016-10-25 14:05:26.257039
yahoo_bundle 2016-10-25 13:16:19.252465
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
<ipython-input-7-266004c14999> in <module>()
1 from zipline.data.bundles import load
----> 2 bundle_data = load('fund_bundle')
G:\Anaconda3\lib\site-packages\zipline\data\bundles\core.py in
load(name, environ, timestamp)
514 return BundleData(
515 asset_finder=AssetFinder(
--> 516 asset_db_path(name, timestr, environ=environ),
517 ),
518 equity_minute_bar_reader=BcolzMinuteBarReader(
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in
__init__(self, engine)
146 def __init__(self, engine):
147 self.engine = engine
--> 148 metadata = sa.MetaData(bind=engine)
149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
G:\Anaconda3\lib\site-packages\zipline\assets\assets.py in
__init__(self, engine)
147 self.engine = engine
148 metadata = sa.MetaData(bind=engine)
--> 149 metadata.reflect(only=asset_db_table_names)
150 for table_name in asset_db_table_names:
151 setattr(self, table_name, metadata.tables[table_name])
G:\Anaconda3\lib\site-packages\sqlalchemy\sql\schema.py in
reflect(self, bind, schema, views, only, extend_existing, autoload_replace, **dialect_kwargs)
3648 'Could not reflect: requested table(s) not available '
3649 'in %s%s: (%s)' %
-> 3650 (bind.engine.url, s, ', '.join(missing)))
3651 load = [name for name in only if extend_existing or
3652 name not in current]
InvalidRequestError: Could not reflect: requested table(s) not available in sqlite:///C:\Users\scuba/.zipline\data\fund_bundle\2016-10-30T10;03;42.188459\assets-5.sqlite: (equities, futures_root_symbols, futures_exchanges, asset_router, equity_symbol_mappings, version_info, futures_contracts)
It's got me stumped. Just curious, if you follow every step on my blog post
http://www.prokopyshen.com/create-custom-zipline-data-bundle
and using only a couple of yahoo fund symbols and a short time period to keeps things simple, and not using a notebook for the moment, do those instructions work for you?
If so, then I would slowly add in more complexity/variation in the direction you want to go to see where this is tilting for you.from zipline.data.bundles import register, load, yahoo_equities
funds = set(['VTSMX','VTSAX','VFINX','VFIAX','VIVAX','VVIAX','VIGRX','VIGAX','VIMSX','VIMAX','VMGIX','VMGMX','VMVIX',
'VMVAX','NAESX','VSMAX','VISVX','VSIAX','VISGX','VSGAX','BRSIX','VGSIX','VGSLX','VGTSX','VTIAX','VTMGX','VTMGX',
'VEIEX','VEMAX','VEURX','VEUSX','VPACX','VPADX','VTRIX','EFV','VFSVX','VBMFX','VBTLX','VFISX','VFIRX','VFITX','VUSTX'
,'VUSUX','VIPSX','VAIPX','VWSTX','VWSUX','VWITX','VWIUX','VWLTX','VWLUX','VICSX','VWESX','VWETX','VWEHX','VWEAX',
'VFSTX','VFSUX','PIGLX','VGPMX','PCRIX'])
register(
'fund_bundle',
yahoo_equities(funds),
)
2. Injested fund_bundle:
$ zipline ingest -b fund_bundle
Merging daily equity files: [-----------------------------------#] 59] 100%
Merging daily equity files: [####################################]
Downloading Yahoo adjustment data: [####################################] 100%
3. Put the following code into test.py:
#!/usr/bin/env python
from zipline.data.bundles import register, load, yahoo_equities
funds = set(['VTSMX','VTSAX','VFINX','VFIAX','VIVAX','VVIAX','VIGRX','VIGAX','VIMSX','VIMAX','VMGIX','VMGMX','VMVIX',
'VMVAX','NAESX','VSMAX','VISVX','VSIAX','VISGX','VSGAX','BRSIX','VGSIX','VGSLX','VGTSX','VTIAX','VTMGX','VTMGX',
'VEIEX','VEMAX','VEURX','VEUSX','VPACX','VPADX','VTRIX','EFV','VFSVX','VBMFX','VBTLX','VFISX','VFIRX','VFITX','VUSTX'
,'VUSUX','VIPSX','VAIPX','VWSTX','VWSUX','VWITX','VWIUX','VWLTX','VWLUX','VICSX','VWESX','VWETX','VWEHX','VWEAX',
'VFSTX','VFSUX','PIGLX','VGPMX','PCRIX'])
register( 'fund_bundle', yahoo_equities(funds))
bundle_data = load('fund_bundle')
symbols = set(str(asset.symbol) for asset in bundle_data.asset_finder.retrieve_all(bundle_data.asset_finder.equities_sids))
print symbols
print symbols == funds
4. Run it and see expected proof that bundle is loaded:
$ ./test.py
set(['NAESX', 'VFSUX', 'VVIAX', 'VFISX', 'VGSIX', 'VTSAX', 'VMVAX', 'VGPMX', 'VSIAX', 'BRSIX', 'VIMAX', 'VISGX', 'VIGAX', 'VPACX', 'VIPSX', 'VFINX', 'VUSTX', 'VEUSX', 'VEMAX', 'VTSMX', 'VIMSX', 'VWESX', 'VSMAX', 'VWSUX', 'VWEHX', 'PIGLX', 'VMVIX', 'VTRIX', 'VWIUX', 'VWLUX', 'VAIPX', 'VSGAX', 'VICSX', 'VMGMX', 'VFSTX', 'VFIRX', 'VFITX', 'EFV', 'VBTLX', 'VGSLX', 'VUSUX', 'VGTSX', 'VISVX', 'PCRIX', 'VWEAX', 'VTMGX', 'VEURX', 'VWSTX', 'VEIEX', 'VIGRX', 'VIVAX', 'VWETX', 'VPADX', 'VFIAX', 'VMGIX', 'VWLTX', 'VFSVX', 'VTIAX', 'VBMFX', 'VWITX'])
True
5. Checked zipline version:
$ python -c 'import zipline; print zipline.__version__'
1.0.2
I hope it helps
Regards,
Ed
etf_bundle 2016-10-30 07:20:30.523369 etf_bundle 2016-10-29 13:44:58.776082 etf_bundle 2016-10-28 05:22:53.139970 fund_bundle 2016-10-30 10:03:42.188459 quandl 2016-10-25 10:04:06.739478 quantopian-quandl 2016-10-29 13:24:44.019124 yahoo_bundle 2016-10-25 14:05:26.257039 yahoo_bundle 2016-10-25 13:16:19.252465
BUT..IN:
bundle_data = load('fund_bundle')
OUT:
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
<ipython-input-7-266004c14999> in
<module>()
1 from zipline.data.bundles import load
----> 2 bundle_data = load('fund_bundle')
InvalidRequestError: Could not reflect: requested table(s) not available in sqlite:///C:\Users\scuba/.zipline\data\fund_bundle\2016-10-30T10;03;42.188459\assets-5.sqlite: (equities, futures_root_symbols, futures_exchanges, asset_router, equity_symbol_mappings, version_info, futures_contracts)
@Ed, @Richard,
the documented process seems very brittle and I'm struggling...
Please help
Regards,
Dave
--
You received this message because you are subscribed to the Google Groups "Zipline Python Opensource Backtester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Zipline Python Opensource Backtester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Zipline Python Opensource Backtester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.