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 v2

Current version of the Alpaca API, which has been updated to support our newest features, including margin, shorting, and extended hours.

How-To Code Examples

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

Client SDK

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



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 Forum or Community Slack to get help from other community members and the Alpaca team.