API Documentation

In order to start using Alpaca Web API, you will need to obtain your API key. An API key consists of two strings, one called Key ID which always appears in your dashboard, and Secret Key, which appears only once when generating it. Make sure you keep both in your hands.

Web API

Read through our Web API document. It describes how our API works in details so you can prepare for your algorithm to interact with it.

Client SDK

Alpaca also provides software development kits (“SDKs”) here for Python, C#, Go, and Node to help interact with the Alpaca Web API.

How-To Code Examples

Basic usage examples showing how to do specific tasks using the Alpaca API.

API v2 Reference

Updates made to the API to support our newest features. The information contained in this section only applies to Power Accounts and is subject to revision.


Suggestions or questions?
We're always happy to hear from you. You can contribute to these docs on GitHub, or you can join our Community Slack to get help from other community members and the Alpaca team.