Collect the full US fundamentals dataset from Sharadar by running the following function:
from quantrocket.fundamental import collect_sharadar_fundamentals
collect_sharadar_fundamentals(country="US")
{'status': 'the fundamental data will be collected asynchronously'}
This runs in the background, monitor flightlog for a completion message:
quantrocket.fundamental: INFO Collecting Sharadar US fundamentals
quantrocket.fundamental: INFO Collecting updated Sharadar US securities listings
quantrocket.fundamental: INFO Finished collecting Sharadar US fundamentals
To collect daily prices from Sharadar, create the Sharadar bundle:
from quantrocket.zipline import create_sharadar_bundle
create_sharadar_bundle("sharadar-1d")
{'status': 'success', 'msg': 'successfully created sharadar-1d bundle'}
Then ingest the data:
from quantrocket.zipline import ingest_bundle
ingest_bundle("sharadar-1d")
{'status': 'the data will be ingested asynchronously'}
Monitor flightlog for a completion message:
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