OHLC
https://api.unusualwhales.com/api/stock/{ticker}/ohlc/{candle_size}
Request
Authorization: Bearer <token>
Path Parameters
ticker
SingleTicker
required
A single ticker
AAPL
candle_size
string
required
enum: 1m, 5m, 10m, 15m, 30m, 1h, 4h, 1d, 1w
Query Parameters
timeframe
Time frame
optional
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
Default:
1Y
end_date
OHLC End Date
optional
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-18
date
Market Date
optional
A trading date in the format of YYYY-MM-DD.
2024-01-18
limit
Max 2500 Min 1
optional
How many items to return. Max: 2500. Min: 1.
10
>= 1
<= 2500
Responses
200 422 500Response Body 200 OK
close
Candle Close
The closing price of the candle.
56.79
end_time
Candle End time
The end time of the candle as UTC timestamp.
2023-09-07T20:07:00Z
high
Candle High
The highest price of the candle.
58.12
low
Candle Low
The lowest price of the candle.
51.90
market_time
Market General Market Time
The market time: - pr = premarket - r = regular - po = postmarket
pr
open
Candle Open
The opening price of the candle.
54.29
start_time
Candle Start time
The start time of the candle as UTC timestamp.
2023-09-07T20:06:00Z
total_volume
Candle Total volume
The total volume of the ticker for the full trading till now.
13744676
volume
Candle Volume
The volume of the candle.
10699
curl -X GET "https://api.unusualwhales.com/api/stock/{ticker}/ohlc/{candle_size}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"data": [
{
"close": "56.79",
"end_time": "2023-09-07T20:11:00Z",
"high": "56.79",
"low": "56.79",
"market_time": "po",
"open": "56.79",
"start_time": "2023-09-07T20:10:00Z",
"total_volume": 13774488,
"volume": 29812
},
{
"close": "56.79",
"end_time": "2023-09-07T20:07:00Z",
"high": "56.79",
"low": "56.79",
"market_time": "po",
"open": "56.79",
"start_time": "2023-09-07T20:06:00Z",
"total_volume": 13744676,
"volume": 10699
}
]
}