We're making trading more accessible with the Alpaca mobile app. Join the waitlist to download it first!

Data API

Unlimited access to real-time US stock market data

Easy-to-use API and quality stock market data for better modelling and backtesting.

Want to build your own trading app using market data?
Check out Broker API and hack away!
Flexible Pricing
Designed for developers.
 
Free
$0/mo
Check markUS Stocks & ETFs
Check markCrypto
Check markIEX
Check markReal-time Data
Check mark5+ years
Check mark200 API calls/min
Check mark30 symbols
Crossed out, not included Display services
Crossed out, not included Commercial use
Check markUS Stocks & ETFs
Check markCrypto
Check markAll US Exchanges
Check markReal-time Data
Check mark5+ years
Check markUnlimited
Check markUnlimited symbols
Crossed out, not included Display services
Crossed out, not included Commercial use
 
Business
$99/mo/device
Check markUS Stocks & ETFs
Check markCrypto
Check markAll US Exchanges
Check markReal-time Data
Check mark5+ years
Check markUnlimited API calls
Check markUnlimited symbols
Check markProfessional use
Crossed out, not included Commercial use
Connected (press CTRL+C to quit)
< [{"T":"success","msg":"connected"}]
> {"action": "auth", "key": "{APCA-API-KEY-ID}", "secret": "{APCA-API-SECRET-KEY}"}
< [{"T":"success","msg":"authenticated"}]
> {"action":"subscribe","bars":["AAPL","TSLA"]}
< [{"T":"subscription","trades":[],"quotes":[],"bars":["AAPL","TSLA"],"dailyBars":[]}]
< [{"T":"b","S":"AAPL","o":125.81,"c":125.84,"h":125.8778,"l":125.79,"v":200967,"t":"2021-05-20T13:59:00Z"}]
< [{"T":"b","S":"TSLA","o":578.11,"c":580,"h":580.47,"l":577.8,"v":233648,"t":"2021-05-20T13:59:00Z"}]
$ wscat -c wss://stream.data.alpaca.markets/v2/sip
Real-time stock data
Access true event-based market data streaming via Websockets with nanosecond precision instead of being limited to pulling minute, hourly or daily data.
View docs
5+ years of historical data
Develop and test your strategies with confidence. Consolidated financial data with full U.S. market coverage on the Unlimited plan.
SDK available in C# SDK available in Node.js SDK available in GoLang SDK available in Python
{
  "t": "2021-02-06T13:04:56.334320128Z",
    "x": "C",
    "p": 387.62,
    "s": >100,
    "c": [
      "",
        "T"
    ],
    "i": 52983525029461,
    "z": "B"
}
REST API and SDKs
Built to be simple, powerful and scalable. Access datasets in minutes with one easy-to-use API and build your application in any major programming language you are familiar with.
View docs
Flexible aggregate bars
Gives you access to OHLC data in any timeframe that fits you to support your trading strategies.
Trusted by Hedge Funds, Brokerages, and Fintechs
High-performance architecture built for enterprise scale.
Less than 20ms latency
<20ms
Latency
Low latency interface with high-performance architecture.
Robust systems
Redundancies
for Reliability
High data accuracy built around robust systems to ensure data availability.
Server
Direct Feed from
Exchanges
Our physical hardware is located next to most of the market participants.
Hi
Commercial
Use
We support your redistribution or commercial use case with simple pricing.
Have any questions?
Contact us
Name
Email
Message