QuantRocket logo

Disclaimer

Collect US Stock Sample Data

This tutorial outlines how to collect sample data for US stocks. This dataset contains minute data, but also supports querying of daily data. The dataset is synced from QuantRocket's cloud and stored in a Zipline bundle, a type of local database. See the usage guide for more information.

Start by creating an empty bundle called 'usstock-free-1min':

Then collect the data, which in Zipline bundle terminology is referred to as ingestion:

Use flightlog to monitor the progress:

quantrocket.zipline: INFO [usstock-free-1min] Ingesting minute bars for 9 securities in usstock-free-1min bundle
quantrocket.zipline: INFO [usstock-free-1min] Ingesting daily bars for usstock-free-1min bundle
quantrocket.zipline: INFO [usstock-free-1min] Ingesting adjustments for usstock-free-1min bundle
quantrocket.zipline: INFO [usstock-free-1min] Ingesting assets for usstock-free-1min bundle
quantrocket.zipline: INFO [usstock-free-1min] Completed ingesting data for 9 securities in usstock-free-1min bundle

First Lecture: Introduction to Notebooks

Back to Introduction