Skip to main content
POST
/
api
/
coinglass
/
long-short-ratio
/
history
/coinglass/long-short-ratio/history
curl --request POST \
  --url https://api.anysite.io/api/coinglass/long-short-ratio/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "timeout": 300,
  "interval": "1"
}
'
[
  {
    "timestamp": 123,
    "@type": "@coinglass_long_short_point",
    "price": 123,
    "long_account_percentage": 123,
    "short_account_percentage": 123,
    "long_short_ratio": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
symbol
string
required

Coin ticker symbol

Minimum string length: 1
Example:

"BTC"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
interval
enum<string>
default:1

Candle interval of the series

Available options:
5,
15,
30,
1,
4,
12,
0

Response

Successful Response

timestamp
integer
required
@type
string
default:@coinglass_long_short_point
price
number | null
long_account_percentage
number | null
short_account_percentage
number | null
long_short_ratio
number | null