Alpaca Data API - API for Free Real-Time Stock Market Data

image

Alpaca Data API to Access Real-Time Stock Market Data for Free

Market data matters when you trade. That’s why we are excited to announce the Alpaca Data API, a brand new data product that we built from scratch to create the de facto standard market data offering for developers.

We have worked hard to make the Alpaca Data API your go-to data API for building your algorithmic trading strategies or trading/investing applications. The Alpaca Data API provides real-time stock price data with up to 99.95% price accuracy* compared to other expensive consolidated market data feeds. Best of all, it’s completely free to use.

All Alpaca users, regardless of account type or country of residence, can now access the Alpaca Data API.


Free real-time stock market data API | Alpaca Data API
Alpaca is a modern platform for trading. Alpaca’s API is the interface for your trading algorithms, bots, or applications to communicate with Alpaca’s brokerage and other services.
Alpaca

*(as measured using 10-second snapshots of the Alpaca Data API last price vs. the SIP last price)

Key Offerings of Alpaca Data API

5 Stock Exchanges, up to 99.95% Price Accuracy*

With the Alpaca Data API, you get access to data from 5 top US stock exchanges, providing you with comprehensive coverage of trading activity across the entire US stock market.

This robust consolidated data feed enables you to research, develop, and run your trading strategies with more confidence. It also allows you to build trading applications where your end users can enjoy the benefits of high-quality display data. That’s because there is up to 99.95% price accuracy* between the Alpaca Data API and the SIP feed (100% coverage data feed) for actively traded stocks and ETFs.

*(as measured using 10-second snapshots of the Alpaca Data API last price vs. the SIP last price)

True Streaming Market Data via Websockets

Regardless of your Alpaca account type, all Alpaca users now have access to true event-based streaming market data via Websockets, instead of being limited to pulling minute or daily bar data.

This allows you to reduce your API calls and be more aware of market movements. You can also expect more stability in running your trading strategies and trading apps.

Large Historical Data Set

The Alpaca Data API provides you with 5 years of historical data, allowing you to develop and test your strategies with confidence.

Customizable Bar Data

Why be limited to only one period of bar data? The Alpaca Data API gives you access to 1, 5, 15, 30, and 60 minute bar data, in addition to daily, weekly, and monthly bar data. This helps enable strategy development across multiple time horizons, from intraday scalping algorithms to long-term asset allocation or buy and hold strategies.

Evolution of the Alpaca Data API

We strongly believe that market data is an essential piece of the user journey for developers when we build anything related to the financial market. With that said, we plan to continue to upgrade and work on Alpaca Data API such as we have been making many updates to the Alpaca Trading API.

We truly appreciate your support for Alpaca’s API products, and we are looking forward to hearing from you about how you can utilize the Alpaca Data API.

Please tweet your work and share them with us mentioning @AlpacaHQ!

Follow @AlpacaHQ on Twitter!

Brokerage services are provided by Alpaca Securities LLC (“Alpaca”), member FINRA / SIPC , a wholly-owned subsidiary of AlpacaDB, Inc. Technology and services are offered by AlpacaDB, Inc.

Market prices, data and other information available through Alpaca are not warranted as to completeness or accuracy and are subject to change without notice. System response and account access times may vary due to a variety of factors, including trading volumes, market conditions, system performance, and other factors. A more complete description of the impact these factors may have can be found in our risks of automated trading systems section .

1 Like

Hi there, I live in Europe, therefore I can not open a Trading account. However today when I saw the Data API and the “get API key” button got really excited. Still, once I registered my email they ask me information to create a trading account which I cant. How can I do to get the Data API key?

1 Like

Hey @Alejandro_Abraham

If you go to the top right corner of your Alpaca account and click the box there should be a dropdown to sign up for a Market Data Subscription. It is also here at this link. If you choose to sign up there, you will receive Data API keys. Then for instance you can use the unlimited plan with your paper trading account.

Hope this helps
Jason from Alpaca

I’ve subscribed as a non US resident but where is the API key?

@steveli The API keys to access data are the same as the paper account and live account keys. Either will work. Ensure you use the secret key associated with the account.

This documentation says - “Why be limited to only one period of bar data? The Alpaca Data API gives you access to 1, 5, 15, 30, and 60 minute bar data”
But the V2 historical data bars says - " timeframe stringRequired Timeframe for the aggregation. Available values are: 1Min , 1Hour , 1Day .
So which is it?
Is this doc wrong? or is it that you get more timeframes if you subscribe? in Which case the V2 docs should be changed to reflect that?