OHLC
Returns the Open High Low Close (OHLC) candle data for a given ticker.
Results are limited to 2,500 elements even if there are more available.
Row order depends on candle_size: intraday candles are newest first, while daily candles are oldest
first. The most recent intraday candle is still forming, and its start_time is the start of the current
bucket. Select the latest bar by the maximum start_time, not by array position.
Note: If you select 1d or 1w as a candle_size then the candles won’t have a start & end time. For 1w, the date field is the Monday of the ISO week.
Note: Suppose you enter end_date value 2024-11-25 which was a Monday. Your response will include 1-2 hours of data from Tuesday 2024-11-26 due to UTC date rollover. Rest-assured, the response data covers the full trading day (based on Eastern time) according to your entered end_date.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A single ticker
"AAPL"
1m, 5m, 10m, 15m, 30m, 1h, 4h, 1d, 1w Query Parameters
The timeframe of the data to return. Can be one of the following formats:
- YTD
- 1D, 2D, etc.
- 1W, 2W, etc.
- 1M, 2M, etc.
- 1Y, 2Y, etc.
"2M"
A trading date in the format of YYYY-MM-DD.
This is the end date for the given timeframe. If you set the timeframe to 1 minute ticks and have an end_date of 2024-01-18 then it would start searching backwards from 2024-01-18
"2024-01-18T00:00:00.000Z"
A trading date in the format of YYYY-MM-DD.
"2024-01-18T00:00:00.000Z"
How many items to return. Max: 2500. Min: 1.
1 <= x <= 250010
Response
OHLC Response
The candle data for the requested timeframe.
The closing price of the candle.
"56.79"
The end time of the candle as UTC timestamp.
"2023-09-07T20:07:00.000Z"
The highest price of the candle.
"58.12"
The lowest price of the candle.
"51.90"
The market time:
- pr = premarket
- r = regular
- po = postmarket
r, po, pr "pr"
The opening price of the candle.
"54.29"
The start time of the candle as UTC timestamp.
"2023-09-07T20:06:00.000Z"
The total volume of the ticker for the full trading till now.
13744676
The volume of the candle.
10699
