Get stock prices

Get the latest available stock quote, and a timeseries of stock prices for a specified equity

Get the latest available quote

Get the latest quote for an equity by calling the equity/{ticker}/quote endpoint. Replace {ticker} with the stock symbol you want to get the quote for.

$curl -X GET "https://api.dataglade.com/equity/AAPL/quote" -H "Authorization : Bearer <YOUR_API_KEY>"

Make sure to pass your API key.

Response
1{
2 "data": [
3 {
4 "symbol": "AAPL",
5 "name": "Apple Inc.",
6 "price": 235.86,
7 "percentChange": -0.2622,
8 "change": -0.62,
9 "dayLow": 232.61,
10 "dayHigh": 236.19,
11 "yearHigh": 237.49,
12 "yearLow": 164.08,
13 "marketCap": 3586039026000,
14 "priceAvg50": 225.9344,
15 "priceAvg200": 200.1021,
16 "volume": 34958938,
17 "avgVolume": 51003768,
18 "open": 233.885,
19 "lastClose": 236.48,
20 "eps": 6.57,
21 "pe": 35.9,
22 "shares": 15204100000,
23 "timestamp": 1729627201
24 }
25 ],
26 "message": "message",
27 "info": "info"
28}

Historical prices (charting)

You can get historical price intervals for a stock by calling the equity/{ticker}/prices endpoint. Replace {ticker} with the stock symbol you want to get the prices for.

Historical prices include day trading ranges - open, high, low, close - as well as volume (OHLCV). This makes them idea for charting, including for drawing candlestick charts.

$curl -X GET "https://api.dataglade.com/equity/AAPL/quote" -H "Authorization : Bearer <YOUR_API_KEY>"

Make sure to pass your API key.

Response
1{
2 "data": [
3 {
4 "symbol": "AAPL",
5 "name": "Apple Inc.",
6 "price": 235.86,
7 "percentChange": -0.2622,
8 "change": -0.62,
9 "dayLow": 232.61,
10 "dayHigh": 236.19,
11 "yearHigh": 237.49,
12 "yearLow": 164.08,
13 "marketCap": 3586039026000,
14 "priceAvg50": 225.9344,
15 "priceAvg200": 200.1021,
16 "volume": 34958938,
17 "avgVolume": 51003768,
18 "open": 233.885,
19 "lastClose": 236.48,
20 "eps": 6.57,
21 "pe": 35.9,
22 "shares": 15204100000,
23 "timestamp": 1729627201
24 }
25 ],
26 "message": "message",
27 "info": "info"
28}