get https://api.amberdata.com/market/swaps/open-interest/exchange//historical
Retrieves the historical time series open interest for the specified exchange and instrument(s).
Exchanges Supported
This endpoint supports Bitmex, Huobi, Okex, and FTX.US.
Time Range Limit
The maximum time range (difference between startDate and endDate) is 1 day.
Not specifying startDate and endDate
If the startDate and endDate query parameters are not provided, the API will return the data from the previous 1 day with a 1 minute frequency.
RESPONSE DATA
Field | Type | Description |
---|---|---|
instrument | string | The name of the instrument. |
timestamp | number | string | The time at which the event occurred. |
value | number | The total outstanding number of contracts. |