get https://api.amberdata.com/markets/futures/long-short-ratio/
Retrieves the historical (time series) long short ratio 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.
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 | |
metadata.api-version | string | The API version of this response. | |
data[index].instrument | string | The futures instrument whose long/short ratio data was requested for. | |
data[index].exchange | string | The exchange on which this long/short ratio data is from. | |
data[index].exchangeTimestamp | number | string | ||
data[index].exchangeTimestampNanoseconds | number | ||
data[index].period | number | The frequency of the timeInterval .When timeInterval=minutes the period is 5, indicating 5 minutes.When timeInterval=days the period is 1, indicating 1 day. | |
data[index].longAccount | number | The number of trading accounts that are long on this instrument. | |
data[index].shortAccount | number | The number of trading accounts that are short on this instrument. | |
data[index].ratio | number | The proportion of long to short accounts. |