Professional Documents
Culture Documents
In this article, I’ll cover some of the important features and differences
between Alpaca and Quantopian, two platforms focused around simple
algorithmic trading.
Quantopian Help
Platform Features
The latter can make the first steps of development and testing easier, but
can’t be converted into production trading strategy without significant
reworking, while any software written for Alpaca’s paper trading accounts is
already functional with a live trading account with the simple change of the
API keys.
Data Availability
Both platforms provide easy access to a wide range of price and fundamental
data, allowing for quick implementation of new ideas without needing third
party feeds.
Quantopian and Alpaca both have minute data of US stock prices and volume,
with Quantopian also including a wide selection of US futures too. Alpaca
provides a range of fundamental and metadata through integrations with IEX
and Polygon, while Quantopian has access to fundamentals via Morningstar.
Alpaca uses live NBBO (national best bid/ offer) for simulated market orders
and fills limit orders (which would hold the best bid/ offer) at a predefined
random rate, so as to accurately replicate real market conditions. They,
however, do not account for order size, which could have a noticeable effect
on market movement with large trading accounts or lower volume equities.
Alpaca uses live NBBO (national best bid/ offer) for simulated market orders
and fills limit orders (which would hold the best bid/ offer) at a predefined
random rate, so as to accurately replicate real market conditions. They,
however, do not account for order size, which could have a noticeable effect
on market movement with large trading accounts or lower volume equities.
Quantopian, on the other hand, from reading its document, simulates orders
against the close next minute bar[1] after the order has been submitted. This
can have the weird effect of filling orders at more favorable prices, such as a
limit order being filled below its limit price. This behavior has the possibility to
skew results long term, making a strategy look more favorable than it would
be in reality, in my opinion.
Footnotes
1. Paper trading is stated to be run on the same engine as back-
testing and this has been a known effect of the back-testing engine
for a long time. I also ran my own tests, which confirmed that limit
orders could be filled below their limit price during paper trading.
Quantopian Help
Technology and services are offered by AlpacaDB, Inc. Brokerage services are
provided by Alpaca Securities LLC (alpaca.markets), member FINRA/SIPC.
Alpaca Securities LLC is a wholly-owned subsidiary of AlpacaDB, Inc.
..