Historical API

This RESTful API provides historical market data through the HTTP protocol. This allows you to query historical market information, which can be used for charting, backtesting and to power your trading strategies.

Historical market data is available for the following types:

Base URL

The Base URL for the historical endpoints is

https://data.alpaca.markets/{version}

Sandbox URL (for broker partners):

https://data.sandbox.alpaca.markets/{version}