This tutorial utilizes Sharadar price and fundamental data.
First, collect the fundamental data:
from quantrocket.fundamental import collect_sharadar_fundamentals
collect_sharadar_fundamentals()
{'status': 'the fundamental data will be collected asynchronously'}
Monitor flightlog for completion:
quantrocket.fundamental: INFO Collecting Sharadar US fundamentals
quantrocket.fundamental: INFO Finished collecting Sharadar US fundamentals
Next, ingest the Sharadar Zipline bundle. To do so, first create the bundle:
from quantrocket.zipline import create_sharadar_bundle
create_sharadar_bundle("sharadar-1d")
{'status': 'success', 'msg': 'successfully created sharadar-1d bundle'}
Then, ingest data into the bundle:
from quantrocket.zipline import ingest_bundle
ingest_bundle("sharadar-1d")
{'status': 'the data will be ingested asynchronously'}
Monitor flightlog for completion:
quantrocket.zipline: INFO [sharadar-1d] Ingesting daily bars for sharadar-1d bundle
quantrocket.zipline: INFO [sharadar-1d] Ingesting adjustments for sharadar-1d bundle
quantrocket.zipline: INFO [sharadar-1d] Ingesting assets for sharadar-1d bundle
quantrocket.zipline: INFO [sharadar-1d] Completed ingesting data for sharadar-1d bundle
Next, set the Sharadar bundle as the default bundle. This is optional but saves us from having to specify the bundle explicitly every time we run the notebook.
from quantrocket.zipline import set_default_bundle
set_default_bundle("sharadar-1d")
{'status': 'successfully set default bundle'}