Real-Time Stock Market and Crypto Data
Developer-first API with up to 10,000 API calls/min and over 7 years of historical data
Get API KeysWant to build your own trading app using market data?
Check out our Broker API and hack away!
Flexible plans with instant access
Alpaca's unlimited market data plans are designed for developers, traders, professionals, and Broker API partners.
Broker API Partner
For startups and enterprises
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
{
"t":
"2021-02-06T13:04:56.334320128Z",
"x":
"C",
"p":
387.62,
"s":
>100,
"c":
[
"",
"T"
],
"i":
52983525029461,
"z":
"B"
}
It will take you 5 minutes to get started.
Latency
for Reliability
Exchanges
Use
We're here to help!
With our global support team, we're here to help you choose the best plan for your goals. Contact us and one of our team members will help you find the right plan.
Contact Support