Historical Prices¶
GET /v1/historical¶
Overview¶
Purpose: Historical stock price data retrieval
Response Format: Time-series OHLCV (Open, High, Low, Close, Volume) data
Authentication¶
Optional authentication via x-api-key
header token
Request Parameters¶
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
symbol |
string | ✓ | Stock ticker symbol | NVDA |
range |
string | ✓ | Historical time range | 1y |
interval |
string | ✓ | Data point frequency | 1d |
epoch |
boolean | Use epoch timestamps (default: false) | true |
Available Range Options¶
1d
, 5d
, 1mo
, 3mo
, 6mo
, ytd
, 1y
, 2y
, 5y
, 10y
, max
Available Interval Options¶
1m
, 5m
, 15m
, 30m
, 1h
, 1d
, 1wk
, 1mo
Interval and Range Compatibility
Interval | Compatible Ranges |
---|---|
1m |
1d , 5d only |
5m |
1d , 5d , 1mo only |
15m |
1d , 5d , 1mo only |
30m |
1d , 5d , 1mo only |
1h |
1d , 5d , 1mo , 3mo , 6mo , ytd , 1y only |
1mo |
Required for max range |
Attempting incompatible combinations will result in a 400 Bad Request error.
Responses:
- 200 OK
- Content-Type:
application/json
- Schema: Object whose keys are dates (or epoch) and values are
HistoricalData
objects. -
Example (200):
-
400 Bad Request
-
404 Not Found
-
422 Unprocessable Entity
Schema References¶
HistoricalData Schema¶
Field | Type | Description | Required |
---|---|---|---|
open |
number | Opening price | ✓ |
high |
number | Highest price | ✓ |
low |
number | Lowest price | ✓ |
close |
number | Closing price | ✓ |
adjClose |
number | Adjusted closing price | |
volume |
integer | Volume traded | ✓ |