OHLC Data
Returns the Open High Low Close (OHLC) candle data for a given ticker.
get/api/stock/{ticker}/ohlc/{candle_size}
Path parameters
tickerstring required
candle_size'1m' | '5m' | '10m' | '15m' | '30m' | '1h' | '4h' required
Query parameters
datestring date
end_datestring date
limitinteger
timeframestring
The timeframe of the data to return. Allowed formats:
- YTD
- 1D, 2D, etc.
- 1W, 2W, etc.
- 1M, 2M, etc.
- 1Y, 2Y, etc. Default: 1Y
Response
The candle data for the requested timeframe.
Example response
[
{
"close": "56.79",
"end_time": "2023-09-07T20:07:00Z",
"high": "58.12",
"low": "51.90",
"market_time": "pr",
"open": "54.29",
"start_time": "2023-09-07T20:06:00Z",
"total_volume": 13744676,
"volume": 10699
}
]