SDKs and Tools
Official Client SDKs
Alpaca provides and supports the following open-source SDKs in a number of languages. You can leverage these libraries to easily access our API in your own application code or your trading scripts.
- Python: alpaca-py / PyPI
- .NET/C#: alpaca-trade-api-csharp / NuGet
- Node: alpaca-trade-api-js / npm
- Go: alpaca-trade-api-go
- Python (legacy): alpaca-trade-api-python / PyPI
Alpaca-py (Python SDK)
Alpaca-py provides an interface for interacting with the API products Alpaca offers. These API products are provided as various REST, WebSocket and SSE endpoints that allow you to do everything from streaming market data to creating your own trading apps. Here are some things you can do with Alpaca-py:
- Market Data API: Access live and historical market data for 5000+ stocks and 20+ crypto.
- Trading API: Trade stock and crypto with lightning fast execution speeds.
- Broker API & Connect: Build investment apps - from robo-advisors to brokerages.
Community-Made SDKs
In addition to the SDKs directly supported by Alpaca, individual members of our community have created and contributed their own wrappers for these other languages. We are providing these links as a courtesy to the community and to our users who are looking for the API wrapper in other languages or variants. Please be sure to carefully review any code you use to access our financial trading API and/or trust your account credentials to.
Made your own wrapper for a language not listed? Join our community Slack and let us know about it!
- C++: alpaca-trade-api-cpp
- Java: alpaca-java
- Node.js (TypeScript): alpaca-ts
- R: alpaca-for-r
- Rust: apca (SDK) & apcacli (CLI)
- Scala: Alpaca Scala
- Ruby: alpaca-trade-api
- Elixir: alpaca_elixir
Updated 5 months ago