get https://api.amberdata.com/market/swaps/funding-rates/exchange//historical
Retrieves the historical time series funding rates 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 31 days.
Not specifying startDate and endDate
If the
startDate
andendDate
query parameters are not provided, the API will return the data from the previous 1 month.
RESPONSE DATA
Field | Type | Description |
---|---|---|
metadata | object | The metadata associated with the funding rate data. |
data | array | |
data[].instrument | string | The name of the instrument. |
data[].timestamp | number | string | The time at which the event occurred. |
data[].fundingInterval | number | string | null | The funding interval for which data is available. |
data[].fundingRate | number | The funding rate for which data is available. |
data[].nextFundingTime | number | string | null | The funding time for which data is available. |
data[].nextFundingRate | number | null | TThe next funding rate for which data is available. |