Skip to navigation

Get long short ratio

Retrieve the ratio of long versus short accounts holding futures and perpetual swap positions for a currency over the requested time window.

Query parameters

ccystringRequired
Currency, e.g. BTC.
beginstringOptional
Begin time, Unix timestamp in milliseconds, e.g. 1597026383085.
endstringOptional
End time, Unix timestamp in milliseconds, e.g. 1597026683085.
periodenumOptional
Bar size, the default is 5m.
Allowed values:

Response

Successful response
codestringOptional

Result code. 0 means success; any other value is an error code.

msgstringOptional
Error message. Empty on success.
datalist of lists of anyOptional