# Token long/short ratio

- Method: `GET`
- Path: `/token/{id}/long-short-ratio`
- Tier: Pro
- HTML docs: https://docs.hiddensystems.ai/nebula/reference/get-token-id-long-short-ratio/
- Interactive docs: https://docs.hiddensystems.ai/nebula/#endpoint=get-token-id-long-short-ratio

## Description

Counts of unique long vs short callers over time for the token.

## cURL Example

```bash
curl --request GET \
  --url 'https://nebula-api.hiddensystems.ai/api/v1/public/token/bitcoin/long-short-ratio' \
  --header 'X-API-Key: YOUR_API_KEY'
```

## Path Parameters

- `id` (string, required): Token identifier. Accepts internal token_id (integer) or coingecko_id (string, e.g. bitcoin).

## Query Parameters

- `hours` (integer, optional): Lookback window in hours.
- `granularity` (string, optional): Optional bucket size override. If provided, response is aggregated at this interval regardless of lookback window.

## Response

OK

- `data` (array<object>): Time series of long/short caller counts.
- `data[].long_callers` (integer (int64)): Unique callers with bullish/long stance in the bucket.
- `data[].short_callers` (integer (int64)): Unique callers with bearish/short stance in the bucket.
- `data[].time` (string (date-time)): UTC timestamp for the data point.

Media type: `application/json`

## JSON Response

```json
{
  "data": [
    {
      "long_callers": 0,
      "short_callers": 0,
      "time": "2026-01-15T12:00:00Z"
    }
  ]
}
```
