Retrieves the historical time series open interest for the specified instrument and exchange(s).
Deprecation Notice
As part of our ongoing efforts to improve our API and services, we will be deprecating this endpoint. This decision is in line with our commitment to providing high-quality, efficient, and secure API services to our users.
We encourage all users of this endpoint to transition to the Futures Open Interest Historical endpoint as soon as possible. This endpoint offers the same data, we have simply merged our Swaps data together with the Futures data. Therefore, "Swaps" data (aka Perpetual Futures) can now be found under the Futures section of the Amberdata API docs.
Time Range Limit
The maximum time range (difference between startDate and endDate) is 1 day.
Not specifying startDate and endDate
If the
startDate
andendDate
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 |
---|---|---|
exchange | string | The name of the exchange. |
timestamp | number | string | The time at which the event occurred. |
value | number | The total outstanding number of contracts. |