get https://api.amberdata.com/markets/futures/open-interest/
Retrieves the historical (time series) open interest data for the specified futures instrument.
Time Range Limit
The maximum time range (difference between startDate and endDate) is 731 days (2 years).
Not specifying startDate and endDate
If the
startDate
andendDate
query parameters are not provided, the API will return the data from the previous 24 hours at the tick granularity.
timeInterval
Support for the
timeInterval
query parameter will be added soon.
Response Data
Fields and paths are relative to the top-level payload
field i.e. metadata.next
is equivalent to payload.metadata.next
.
JSON Field/Path | Value Type | Optional | Description |
---|---|---|---|
metadata.next | string | Pagination | |
data[index].instrument | string | The futures instrument whose open interest data was requested for. | |
data[index].exchange | string | The exchange on which this open interest data is from. | |
data[index].exchangeTimestamp | number | string | ||
data[index].exchangeTimestampNanoseconds | number | ||
data[index].value | number | The total outstanding number of contracts. | |
data[index].type | string | The type of instrument. |