---
title: "Get Long Short Ratio"
method: GET
path: "/api/v1/market/account-ratio"
tags: ["Market"]
---

# Get Long Short Ratio

`GET /api/v1/market/account-ratio`

## Request

- Base URL: `https://api.ekiden.fi`
- URL: `https://api.ekiden.fi/api/v1/market/account-ratio`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ekidenfi/apis/ekiden-gateway/docs/api/v1/market/account-ratio/get.ts> (a function with typed inputs; its response is checked against the schema)

This refers to the net long and short positions as percentages of all position holders during the selected time.
Long account ratio = Number of holders with long positions / Total number of holders
Short account ratio = Number of holders with short positions / Total number of holders
Long-short account ratio = Long account ratio / Short account ratio

## Query parameters

- `symbol` string, required
- `period` IntervalTime, required (unresolved $ref)
- `start_time` string, date-time, nullable
- `end_time` string, date-time, nullable
- `limit` integer, nullable
- `cursor` string, nullable

## Response `200`

Long short ratio data

- GetLongShortRatioResponse: This refers to the net long and short positions as percentages of all position holders during the selected time.
  - `list` LongShortRatio[], required
    - `buy_ratio` string, required: The ratio of the number of long position
    - `sell_ratio` string, required: The ratio of the number of short position
    - `symbol` string, required
    - `timestamp` string, date-time, required
  - `next_page_cursor` string, required

## Changes

- **2026-01-29** `16fe50636aa5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/changes/api/v1/market/account-ratio/get.md)

---

[API](https://skmtc.dev/ekidenfi/apis/ekiden-gateway.md) - [All operations](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/revisions/fad9eecaba2e?raw)
