Long Short Ratio
long_short_ratioLong/short account ratio for a crypto perpetual contract on the OKX venue — the ratio of accounts holding longs to accounts holding shorts, bucketed by period. A value above 1 means more accounts sit long. Use for positioning and crowd-sentiment reads on a perp.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instId": "MASK-USDT-SWAP",
"period": "5m",
"buckets": 24
},
"name": "long_short_ratio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | ||
| period | No | 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H or 1D. Default 5m. | |
| buckets | No | Recent buckets to return. Default 24, max 100. |