From client SDK to trading system integration, we provide many open source libraries and code snippets to fit your unique use case. Here are the list of our official libraries. If there is not one that fits your needs, let us know and we will work on that.

Client SDK

These are the basic SDK for each lanuage program to interact with our Web API.



pylivetrader is a live trading framework in python 3 that is API-compatible with zipline. You can run your Quantopian algorithm with the minimum code change with Alpaca API.

For more details about how to convert your Quantopian algorithm, please see zipline to pylivetrader migration.


pipeline-live is another library that works well with your Quantopian algorithm. If you are using the Pipeline API, this library can do what you tested in Quantopian and it works well with pylivetrader.

For more details about how to adjust your Quantopian algorithm, please see the migration document.


backtrader is a simple but powerful backtesting and live trading framework that lots of algo traders have been using for real use. We have integrated our SDK to backtrader today and you can run your backtrader algo with our API.

backtrader integrated with Alpaca SDK



We have integrated with Lean which is a big player in the .NET algo trading space. If you are already testing your algorithm in QuantConnect, this is the tool you can use to run it in live with our API.