Historical
Changed onProvides historical OHLCV (Open, High, Low, Close, Volume) data for options contracts, enabling analysis of price movements and trading volumes over time for specific contracts across supported exchanges.
Request
- Base URLhttps://api.amberdata.com/markets
- URLhttps://api.amberdata.com/markets/options/ohlcv/{instrument}
- AuthAPI key in header x-api-key
Path parameters
The instrument for which to retrieve the requested data.
Query parameters
[Default] All available exchanges.
[Optional] Payload only includes data after this date (inclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Optional] Payload only includes data before this date (exclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
Time interval to return the historical data in ("days" | "hours" | "minutes")
[Optional] Time format of the timestamps in the return payload. [Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
[Optional] Specifies the direction in which the data is sorted (by timestamp). [Defaults] asc (ascending order). [Usage Conditions] This parameter can only be used if the startDate and endDate timeframe is within the most recent 24 hours, or if the startDate and endDate parameters are not used at all. [Examples] ascending | descending | asc | desc
Headers
Response
200
Example response
{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"metadata": {
"next": "https://api.amberdata.com/markets/options/ohlcv/BTC-29DEC23-30000-C?cursor=N4IgpgHgxgFghgOwOZhALhAEzAJwJYBGeALiADQhQCuOAzgPY7oJUA2rFtxcOxAInGKo0ARgBsATgDsADikBWAEwAGVaopgEmAUPQipi-fIAsYmTMNiKxPAFswASQRCcANzit0oBHHvoscACetOQgtACOrAByvsIBgaER0bEACqw0Hv6YcHisCRTYAGZwbKRoAMziiorGauogtnAQ6GLlNcYydcoUrPT0ANYEcFD9Kbh49JjoKgC%2BFHgIUOnYAKoItFQADpuMQpgAotDwyGAhaMWstGDWdmAAYoyNZQ25rHhXUPRaIRSFj4L%2BABWDAQoVYcC4AHEcPQtl4sOMiGVQDZ7FxfJs9JJZAoVHUbmjuLZNjEEPQPl9MGduiAFthmmhlDNmUA",
"api-version": "2023-09-30"
},
"data": [
{
"instrument": "BTC-29DEC23-30000-C",
"exchange": "deribit",
"exchangeTimestamp": 1690185600000,
"open": 0.128,
"high": 0.128,
"low": 0.1145,
"close": 0.1155,
"volume": 28.5
}
]
}
}Changes
- info
endpoint added
- info