> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Top Long/Short Position Ratio

Get historical long/short position ratio for top traders on a specific exchange. Measures actual position size (not just account count). Shows capital-weighted sentiment of top traders. Supports multiple intervals. Ideal for: whale position tracking, leveraged position analysis, capital flow detection, institutional bias analysis.

![Get Top Long/Short Position Ratio logo](https://ai-icon.b3.fun/logo/coinglass)
Catalog action Blockchain Data

Get historical long/short position ratio for top traders on a specific exchange. Measures actual position size (not just account count). Shows capital-weighted sentiment of top traders. Supports multiple intervals. Ideal for: whale position tracking, leveraged position analysis, capital flow detection, institutional bias analysis.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coinglass-get-top-long-short-position-ratio` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coinglass`, `futures`, `long-short`, `position`, `ratio`, `top-traders`, `whales`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `exchange` | `string` | Yes | Exchange name \(e.g., 'Binance', 'OKX', 'Bybit'\) |
| `symbol` | `string` | Yes | Trading pair symbol \(e.g., 'BTCUSDT', 'ETHUSDT'\) |
| `interval` | `string` | Yes | Time interval for data aggregation |
| `limit` | `number` | No | Maximum number of results \(default: 1000, max: 4500\) |
| `startTime` | `number` | No | Start timestamp in seconds \(Unix timestamp\) |
| `endTime` | `number` | No | End timestamp in seconds \(Unix timestamp\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `exchange` | `string` | Yes | Exchange name |
| `symbol` | `string` | Yes | Trading pair symbol |
| `interval` | `string` | Yes | Time interval |
| `dataPoints` | `array` | Yes | Array of top traders long/short position ratio data points |

## Examples

**Workflow node**

```json
{
  "type": "coinglass-get-top-long-short-position-ratio",
  "payload": {
    "exchange": "example-exchange",
    "symbol": "ETH",
    "interval": "1h"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coinglass-get-top-long-short-position-ratio/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "exchange": "example-exchange",
    "symbol": "ETH",
    "interval": "1h"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.