QuantRocket logo

Alpaca Steps

To prepare for live trading with Alpaca, the following steps are required:

Collect listings from Alpaca

To place orders with Alpaca, it is necessary to collect securities master listings from Alpaca. It is not sufficient to have collected the listings from another vendor; specific Alpaca fields must be present in the securities master database in order to allow QuantRocket to communite with the Alpaca API.

Real-time database

Next, create the real-time database for collecting data from Alpaca. These steps simply create the database. Real-time data collection will be initiated from the Zipline strategy code. First, create the tick database. Note that we are collecting minute-level data instead of ticks to reduce the data volume and increase the potential universe size. See the usage guide for more information.

Then create the 1-minute aggregate database derived from the tick database:


Next Up

Part 8: Account Allocation and Scheduling