> For the complete documentation index, see [llms.txt](https://docs.coinmarketman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coinmarketman.com/endpoints/positions-and-market-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.coinmarketman.com/~gitbook/mcp).

# Positions & Market Data

The Positions & Market Exposure endpoints provide comprehensive access to trading position data and market analytics. These endpoints allow you to retrieve detailed position information, analyze market exposure by coin and segment (cohort), rank positions by various metrics, and monitor the overall market landscape across different trader cohorts.

***

### Get All Open Positions

`/api/external/positions/open/coin/{coin}`

{% hint style="success" %}
**Unique to HyperTracker Users**
{% endhint %}

Returns a full snapshot of every open perpetual position for a given coin across Hyperliquid, including both the main DEX and all HIP-3 exchanges. This provides complete market coverage in a single request, typically including tens of thousands of positions.

Each position is enriched with detailed position-level metrics and higher-level wallet intelligence, allowing you to analyze individual open positions, trader behavior, and cohort dynamics.

The dataset represents the latest completed market snapshot and is refreshed approximately every 15–20 minutes, in line with Hyperliquid state updates.

<details>

<summary>Path Parameters</summary>

<table><thead><tr><th width="115.04296875">Parameter</th><th width="89.8828125">Type</th><th width="470.740234375">Description</th></tr></thead><tbody><tr><td><code>coin</code></td><td><code>string</code></td><td>Coin symbol to download positions for. Case-insensitive. Examples: BTC, ETH.</td></tr></tbody></table>

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --location \
  --url 'https://ht-api.coinmarketman.com/api/external/positions/open/coin/BTC' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Accept: text/csv'
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/positions/open/coin/BTC",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "text/csv",
    },
    allow_redirects=True,
)

response.raise_for_status()

csv_data = response.text

print(csv_data)
```

{% endcode %}
{% endtab %}

{% tab title="Javascript" %}
{% code collapsedlinecount="10" %}

```
const response = await fetch(
  'https://ht-api.coinmarketman.com/api/external/positions/open/coin/BTC',
  {
    headers: {
      Authorization: 'Bearer YOUR_API_KEY',
      Accept: 'text/csv'
    },
    redirect: 'follow'
  }
);

if (!response.ok) {
  throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}

const csv = await response.text();

console.log(csv);
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> **302 Redirect:** Redirects to a short-lived pre-signed URL for the latest open positions CSV file for the requested coin.

<details>

<summary>CSV content preview</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
[
  {
    "id": "4c16b579bc1f258ff0935e7ac44fe39518ff74b7c696cff5e21fde9c409941b5",
    "address": "0xa5b0edf6b55128e0ddae8e51ac538c3188401d41",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 700.0,
    "value": 47473300.0,
    "entryPrice": 68420.24587,
    "unrealizedPnl": -420872.1093,
    "funding": -52837.50306,
    "liquidationPrice": 27965.013971,
    "liquidationProgress": 1.486200527786029,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-02T20:27:24.000Z",
    "profile_totalEquity": 31042191.967027,
    "profile_perpEquity": 31042191.967027,
    "profile_countOpenPositions": 2,
    "profile_pnl": 370800.216882,
    "profile_balance": 31042191.967027,
    "profile_perpPnlSegmentId": 9,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "a217b26172e2d52a002049b400966a4fce10967fc1b818032033c467b3074942",
    "address": "0x082e843a431aef031264dc232693dd710aedca88",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 250.0,
    "value": 16954750.0,
    "entryPrice": 66819.0,
    "unrealizedPnl": 250000.0,
    "funding": -10141.52,
    "liquidationPrice": 1213.15,
    "liquidationProgress": 4.14,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-02-18T22:44:00.000Z",
    "profile_totalEquity": 18472178.849423,
    "profile_perpEquity": 18472178.849423,
    "profile_countOpenPositions": 4,
    "profile_pnl": 3564355.038546,
    "profile_balance": 18472178.849423,
    "profile_perpPnlSegmentId": 8,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "31541bc8b7cd222f71648a33cdde29b921da88d3d5e718cf97aa9afb5b35d821",
    "address": "0xeadc152ac1014ace57c6b353f89adf5faffe9d55",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 150.0,
    "value": 10172850.0,
    "entryPrice": 68021.0,
    "unrealizedPnl": -20250.0,
    "funding": -20433.0,
    "liquidationPrice": 5122.0,
    "liquidationProgress": 3.87,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-12T20:13:30.000Z",
    "profile_totalEquity": 31186378.24408,
    "profile_perpEquity": 31186378.24408,
    "profile_countOpenPositions": 3,
    "profile_pnl": 2776726.133462,
    "profile_balance": 31186378.24408,
    "profile_perpPnlSegmentId": 8,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "e4f6010060573335113a11ca8b8de322fd84f66c8512516ce5669d35113a11ca",
    "address": "0x6c8512516ce5669d35113a11ca8b8de322fd84f6",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 125.0,
    "value": 8477375.0,
    "entryPrice": 67011.0,
    "unrealizedPnl": 101000.0,
    "funding": -3225.0,
    "liquidationPrice": 1004.0,
    "liquidationProgress": 2.45,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-01-25T18:41:54.000Z",
    "profile_totalEquity": 11583400.515941,
    "profile_perpEquity": 11583400.515941,
    "profile_countOpenPositions": 1,
    "profile_pnl": 1513793.559309,
    "profile_balance": 11583400.515941,
    "profile_perpPnlSegmentId": 8,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "1804f9b096385c4e66ce3dec9a17e150795b9a02e3f5b0edf6b55128e0ddae8",
    "address": "0x4f9b096385c4e66ce3dec9a17e150795b9a02e3f",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 100.0,
    "value": 6781900.0,
    "entryPrice": 65546.0,
    "unrealizedPnl": 227300.0,
    "funding": -1071.0,
    "liquidationPrice": 512.0,
    "liquidationProgress": 1.34,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-01-08T14:47:26.000Z",
    "profile_totalEquity": 2301924.587461,
    "profile_perpEquity": 2301924.587461,
    "profile_countOpenPositions": 1,
    "profile_pnl": 775860.058126,
    "profile_balance": 2301924.587461,
    "profile_perpPnlSegmentId": 9,
    "profile_sizeSegmentId": 6
  },
  {
    "id": "985f02b19dbc062e565c981aac5614baf2cf501f60dc8e3dad2e4e0738e813b9",
    "address": "0x985f02b19dbc062e565c981aac5614baf2cf501f",
    "coin": "ETH",
    "side": "short",
    "dex": "main",
    "size": 12.5,
    "value": 28000.0,
    "entryPrice": 2240.0,
    "unrealizedPnl": 1250.0,
    "funding": 145.0,
    "liquidationPrice": 3615.0,
    "liquidationProgress": 0.32,
    "crossLeverage": 10,
    "isolatedLeverage": 0,
    "openTime": "2026-03-17T20:51:18.000Z",
    "profile_totalEquity": 19022717.393541,
    "profile_perpEquity": 19022717.393541,
    "profile_countOpenPositions": 8,
    "profile_pnl": 607348.752187,
    "profile_balance": 19022717.393541,
    "profile_perpPnlSegmentId": 9,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "557edb253b1d7ed5f15b248a5a3fd919fa5d3c814ecd58def11dc3cadf7deb09",
    "address": "0x557edb253b1d7ed5f15b248a5a3fd919fa5d3c81",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 0.1,
    "value": 6781.9,
    "entryPrice": 68012.0,
    "unrealizedPnl": -23.1,
    "funding": -2.4,
    "liquidationPrice": 451.0,
    "liquidationProgress": 0.08,
    "crossLeverage": 50,
    "isolatedLeverage": 0,
    "openTime": "2026-03-24T18:43:11.000Z",
    "profile_totalEquity": 2302.429994,
    "profile_perpEquity": 2302.429994,
    "profile_countOpenPositions": 2,
    "profile_pnl": 2320.761655,
    "profile_balance": 2302.429994,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "42f3226007290b02c5a0b15bccbb1ba6df04f9923e0ef9ad4096c30acefbf7a9",
    "address": "0x42f3226007290b02c5a0b15bccbb1ba6df04f992",
    "coin": "ETH",
    "side": "long",
    "dex": "main",
    "size": 5.0,
    "value": 11200.0,
    "entryPrice": 2235.0,
    "unrealizedPnl": 25.0,
    "funding": -1.2,
    "liquidationPrice": 312.0,
    "liquidationProgress": 0.14,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-12T11:52:41.000Z",
    "profile_totalEquity": 1865.4829,
    "profile_perpEquity": 1865.4829,
    "profile_countOpenPositions": 1,
    "profile_pnl": 1810.938282,
    "profile_balance": 1865.4829,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 2
  },
  {
    "id": "22047776933bc123d0602ed17aaf0d2f5647df0c6633d75e488fae2a19b0242c",
    "address": "0x22047776933bc123d0602ed17aaf0d2f5647df0c",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 0.05,
    "value": 3390.95,
    "entryPrice": 67555.0,
    "unrealizedPnl": 13.5,
    "funding": -0.8,
    "liquidationPrice": 123.0,
    "liquidationProgress": 0.04,
    "crossLeverage": 50,
    "isolatedLeverage": 0,
    "openTime": "2026-03-16T14:40:49.000Z",
    "profile_totalEquity": 1149.423129,
    "profile_perpEquity": 1149.423129,
    "profile_countOpenPositions": 3,
    "profile_pnl": 1130.446224,
    "profile_balance": 1149.423129,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "3342ee6851ef0ec3cf42658c2be3b28a905271aa24a747628494231347f4f6ae",
    "address": "0x3342ee6851ef0ec3cf42658c2be3b28a905271aa",
    "coin": "ETH",
    "side": "long",
    "dex": "main",
    "size": 1.5,
    "value": 3360.0,
    "entryPrice": 2231.0,
    "unrealizedPnl": 13.5,
    "funding": -0.4,
    "liquidationPrice": 85.0,
    "liquidationProgress": 0.03,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-24T11:48:41.000Z",
    "profile_totalEquity": 380.278541,
    "profile_perpEquity": 380.278541,
    "profile_countOpenPositions": 1,
    "profile_pnl": 364.613446,
    "profile_balance": 380.278541,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "23ff884fab981b7e8b5c43f56d64cd29d1fad4f70d1db1c800184a203915757b",
    "address": "0x23ff884fab981b7e8b5c43f56d64cd29d1fad4f7",
    "coin": "BTC",
    "side": "short",
    "dex": "main",
    "size": 0.01,
    "value": 678.19,
    "entryPrice": 67912.0,
    "unrealizedPnl": 0.9,
    "funding": 0.1,
    "liquidationPrice": 125000.0,
    "liquidationProgress": 0.01,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-25T13:41:44.000Z",
    "profile_totalEquity": 321.593207,
    "profile_perpEquity": 321.593207,
    "profile_countOpenPositions": 1,
    "profile_pnl": 274.865319,
    "profile_balance": 321.593207,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "0abc2f5441ca1e88280c2d67d589e47e0de113639af5148d9294b3d0a7b82ecb",
    "address": "0x0abc2f5441ca1e88280c2d67d589e47e0de11363",
    "coin": "ETH",
    "side": "short",
    "dex": "main",
    "size": 0.25,
    "value": 560.0,
    "entryPrice": 2245.0,
    "unrealizedPnl": 1.25,
    "funding": 0.1,
    "liquidationPrice": 5120.0,
    "liquidationProgress": 0.01,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-26T08:13:58.000Z",
    "profile_totalEquity": 0.027088,
    "profile_perpEquity": 0.027088,
    "profile_countOpenPositions": 1,
    "profile_pnl": 0.024998,
    "profile_balance": 0.027088,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "b1d5e976a1479f8c5f5571769cd6b9f06496139d4100ffccff56d8d0d3161ab1",
    "address": "0xb1d5e976a1479f8c5f5571769cd6b9f06496139d",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 0.005,
    "value": 339.09,
    "entryPrice": 67800.0,
    "unrealizedPnl": 0.1,
    "funding": -0.1,
    "liquidationPrice": 5.0,
    "liquidationProgress": 0.0,
    "crossLeverage": 100,
    "isolatedLeverage": 0,
    "openTime": "2026-03-26T07:29:00.000Z",
    "profile_totalEquity": 0.868885,
    "profile_perpEquity": 0.868885,
    "profile_countOpenPositions": 1,
    "profile_pnl": 0.843124,
    "profile_balance": 0.868885,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "e8e4305ecef9d2c13c7301a1dae44a9309ba76ce3f88705654afd85f67602fce",
    "address": "0xe8e4305ecef9d2c13c7301a1dae44a9309ba76ce",
    "coin": "BTC",
    "side": "short",
    "dex": "main",
    "size": 0.002,
    "value": 135.63,
    "entryPrice": 67900.0,
    "unrealizedPnl": 0.17,
    "funding": 0.0,
    "liquidationPrice": 150000.0,
    "liquidationProgress": 0.0,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-26T05:22:50.000Z",
    "profile_totalEquity": 0.811317,
    "profile_perpEquity": 0.811317,
    "profile_countOpenPositions": 1,
    "profile_pnl": 0.705659,
    "profile_balance": 0.811317,
    "profile_perpPnlSegmentId": 11,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "a5c0d8a71048414c086c45fd86a2ee94fc5df16a3cfe16fdb8418cb08062e3f3",
    "address": "0xa5c0d8a71048414c086c45fd86a2ee94fc5df16a",
    "coin": "ETH",
    "side": "long",
    "dex": "main",
    "size": 0.1,
    "value": 224.0,
    "entryPrice": 2238.0,
    "unrealizedPnl": 0.2,
    "funding": 0.0,
    "liquidationPrice": 5.0,
    "liquidationProgress": 0.0,
    "crossLeverage": 10,
    "isolatedLeverage": 0,
    "openTime": "2026-03-26T00:41:48.000Z",
    "profile_totalEquity": 0.0,
    "profile_perpEquity": 0.0,
    "profile_countOpenPositions": 1,
    "profile_pnl": 0.0,
    "profile_balance": 0.0,
    "profile_perpPnlSegmentId": 12,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "0x3cfe16fdb8418cb08062e3f34d7cd5db8d0eb7ec",
    "address": "0x3cfe16fdb8418cb08062e3f34d7cd5db8d0eb7ec",
    "coin": "BTC",
    "side": "short",
    "dex": "main",
    "size": 0.01,
    "value": 678.19,
    "entryPrice": 67812.0,
    "unrealizedPnl": -0.07,
    "funding": 0.0,
    "liquidationPrice": 98000.0,
    "liquidationProgress": 0.01,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-03-24T16:37:51.000Z",
    "profile_totalEquity": 0.0,
    "profile_perpEquity": 0.0,
    "profile_countOpenPositions": 1,
    "profile_pnl": 0.0,
    "profile_balance": 0.0,
    "profile_perpPnlSegmentId": 12,
    "profile_sizeSegmentId": 1
  },
  {
    "id": "30f679c4da2e100f177f164825e917d4dd5fe3",
    "address": "0x30f679c4da2e100f177f164825e917d4dd5fe3",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 0.00001,
    "value": 0.67819,
    "entryPrice": 78350.0,
    "unrealizedPnl": -0.10531,
    "funding": -37.655092,
    "liquidationPrice": 0.0,
    "liquidationProgress": 13.44097000638162,
    "crossLeverage": 20,
    "isolatedLeverage": 0,
    "openTime": "2026-01-31T22:35:54.000Z",
    "profile_totalEquity": 30867.137468,
    "profile_perpEquity": 30867.137612,
    "profile_countOpenPositions": 2,
    "profile_pnl": -42518.182532,
    "profile_balance": 30867.137612,
    "profile_perpPnlSegmentId": 13,
    "profile_sizeSegmentId": 2
  },
  {
    "id": "1634cf2cceb7a2929ea886a6eda34e141de8ad92e71bc7059767fc1b868bb251",
    "address": "0xcb47bddc3cfc9ea44ee83a9b59acfb7a7772a77f",
    "coin": "BTC",
    "side": "short",
    "dex": "main",
    "size": 0.00001,
    "value": 0.67819,
    "entryPrice": 87997.0,
    "unrealizedPnl": 0.20178,
    "funding": 0.009255,
    "liquidationPrice": 131287.407407,
    "liquidationProgress": 0.0,
    "crossLeverage": 0,
    "isolatedLeverage": 2,
    "openTime": "2025-12-21T18:26:02.000Z",
    "profile_totalEquity": 0.6509,
    "profile_perpEquity": 0.6509,
    "profile_countOpenPositions": 2,
    "profile_pnl": -394.67,
    "profile_balance": 0.6509,
    "profile_perpPnlSegmentId": 12,
    "profile_sizeSegmentId": 16
  }
]
```

{% endcode %}

</details>

***

### Get Historical Positions

`/api/external/positions`

{% hint style="success" %}
**Unique to HyperTracker Users**
{% endhint %}

Returns one consolidated record for each unique Hyperliquid perpetual position captured by HyperTracker during the requested time window.

**Response behavior**

* Each position appears at most once, even if HyperTracker observed it across multiple state updates.
* The requested time window determines which positions are included; it does not reconstruct each position exactly as it appeared during that window.
* Returned records may include lifecycle information captured after the requested window, such as the position’s eventual closing time.
* This endpoint does not return a state-by-state snapshot history.

**Timestamp fields**

* `openTime` — When the position originally opened. This may be earlier than the requested window.
* `closeTime` — When the position ultimately closed. This may be later than the requested window.
* `closeTime: null` — The position is still open when the response is generated. It does not mean only that the position was open during the requested window.
* `createdAt` — When the record was written to HyperTracker’s database. This is not the position opening time.

**Historical coverage and limitations**

Open-position snapshots are available from **April 4, 2025**. No snapshot data is available before this date.

Before **September 2, 2025**, liquidation prices were stored as static values and did not evolve throughout the position lifecycle. From September 2, 2025 onward, evolving liquidation prices are captured at every state update.

Although these state updates are captured internally, this endpoint currently returns one consolidated record per position—not the complete sequence of historical snapshots.

<details>

<summary>Path Parameters</summary>

<table><thead><tr><th width="115.04296875">Parameter</th><th width="89.8828125">Type</th><th width="470.740234375">Description</th></tr></thead><tbody><tr><td><code>coin</code></td><td><code>string</code></td><td>Coin symbol to download positions for. Case-insensitive. Examples: BTC, ETH.</td></tr></tbody></table>

</details>

<details>

<summary>Query Parameters</summary>

<table><thead><tr><th width="116.23046875">Parameter</th><th width="89.7421875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>start</code></td><td><code>string</code></td><td>Start of the time window (ISO 8601, UTC).</td></tr><tr><td><code>end</code></td><td><code>string</code></td><td>End of the time window (ISO 8601, UTC). If omitted, the API uses “now”.</td></tr><tr><td><code>nextCursor</code></td><td><code>string</code></td><td>Cursor for pagination. Use the <code>nextCursor</code> value from the previous response to fetch the next page.</td></tr></tbody></table>

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --url 'https://ht-api.coinmarketman.com/api/external/positions?start=2026-10-30T00:00:00.000Z&end=2026-10-30T01:00:00.000Z' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code collapsedlinecount="10" %}

```
const res = await fetch(
  'https://ht-api.coinmarketman.com/api/external/positions?start=2026-10-30T00:00:00.000Z&end=2026-10-30T01:00:00.000Z',
  { headers: { Authorization: 'Bearer YOUR_API_KEY' } }
);
const data = await res.json();
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/positions",
    params={"start": "2026-10-30T00:00:00.000Z", "end": "2026-10-30T01:00:00.000Z"},
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
)

result = response.json()
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 200 Success: Returns a list of positions that match the provided filters. Pagination is supported via `nextCursor`.

<details>

<summary>Response Example</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
{
  "positions": [
    {
      "address": "0x00032b6993ba1276c206012d8af19dfba91d1406",
      "size": 1500,
      "entryPrice": 0.036802,
      "side": "long",
      "crossLeverage": 0,
      "maxLeverage": 3,
      "coin": "LINEA",
      "szDecimals": 0,
      "markPrice": 0.031922,
      "midPrice": 0.032114,
      "premiumPrice": -0.000511,
      "assetMaxLeverage": 3,
      "positionValue": 47.883,
      "liquidationPrice": 0.022345,
      "unrealizedPnl": -7.32,
      "funding": 0.014876,
      "openTime": "2025-09-01T10:12:30.000Z",
      "closeTime": null,
      "updatedAt": "2025-09-03T11:49:38.000Z",
      "createdAt": "2025-09-01T10:12:34.606Z",
      "isolatedLeverage": 3,
      "id": "d44ffdcce9eac1d533d783066ac58c8f14a6e7b4e7a4da4851b54607ce0033f1",
      "dex": "string",
      "profile": {
        "address": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
        "segments": [
          7,
          8
        ]
      }
    }
  ],
  "nextCursor": "eyJvcGVuVGltZSI6IjIwMjYtMTAtMzBUMDA6MTk6MTcuMDAwWiIsImFkZHJlc3MiOiIweDEyZmU2MmIxYzFlMmExNjdmNGFkYzNkOTY3MDFlZTFkZDUwYTY2ZWUiLCJzaWRlIjoic2hvcnQiLCJjb2luIjoiWFJQIiwiZGV4IjoibWFpbiJ9.hjQRA8_T9eS8WbuKlZUKvrXpEFJp7kRwTTGqMBULzMg"
}
```

{% endcode %}

</details>

***

### Export Open Positions History by Coin

`/api/external/coin/{coin}/open-positions/history`

{% hint style="success" %}
**Unique to HyperTracker Users**
{% endhint %}

Returns a downloadable snapshot of every open perpetual position for a given coin at a single point in time, across both the main DEX and all HIP-3 exchanges. Each position is enriched with the same position-level metrics and wallet-level intelligence as the live open positions export.

By default the endpoint returns the most recent snapshot. When `start`, `end`, or `nextCursor` is supplied, it returns one historical snapshot from within that window, plus a `nextCursor` for paging through the rest of the range.

Each response contains a `downloadUrl` pointing to the full snapshot file for that coin at that timestamp. Follow the URL to download the complete dataset.

**Usage notes**

* The `downloadUrl` is a short-lived pre-signed link, valid for `120` seconds. Request the snapshot again to generate a fresh link.
* The earliest available snapshot is `2026-03-25 14:30:07.569809+00`. Requests for dates before this return no data.
* When more than one snapshot falls inside your `start`/`end` range, `nextCursor` is returned as a non-null value. Pass it back in the `nextCursor` parameter to fetch the next snapshot in the range. When `nextCursor` is `null`, you have reached the end of the range. {% endhint %}

<details>

<summary>Query Parameters</summary>

<table><thead><tr><th width="116.23046875">Parameter</th><th width="89.7421875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>limit</code></td><td><code>number</code></td><td>Maximum number of positions to return per request.</td></tr><tr><td><code>coin</code></td><td><code>string</code></td><td>Coin symbol to filter by (for example <code>ETH</code>, <code>BTC</code>, <code>LINEA</code>). If omitted, positions for all coins are returned.</td></tr><tr><td><code>nextCursor</code></td><td><code>string</code></td><td>Cursor for pagination. Use the <code>nextCursor</code> value from the previous response to fetch the next page.</td></tr><tr><td><code>address</code></td><td><code>string</code></td><td>One or more wallet addresses to include.</td></tr><tr><td><code>start</code></td><td><code>string</code></td><td>Start of the time window (ISO 8601, UTC).</td></tr><tr><td><code>end</code></td><td><code>string</code></td><td>End of the time window (ISO 8601, UTC). If omitted, the API uses “now”.</td></tr><tr><td><code>open</code></td><td><code>boolean</code></td><td>Filter by position status. <code>true</code> returns only open positions, <code>false</code> returns only closed positions. If omitted, both are returned.</td></tr><tr><td><code>segmentId</code></td><td><code>number</code></td><td>Filter positions by trader segment (cohort). Available values: <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>11</code>, <code>12</code>, <code>13</code>, <code>14</code>, <code>15</code>, <code>16</code>. See <a href="https://docs.coinmarketman.com/rest-api/cohorts/cohorts-legend">Cohorts Legend</a>.</td></tr></tbody></table>

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --url 'https://ht-api.coinmarketman.com/api/external/coin/BTC/open-positions/history' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code collapsedlinecount="10" %}

```
const res = await fetch(
  'https://ht-api.coinmarketman.com/api/external/coin/BTC/open-positions/history',
  { headers: { Authorization: 'Bearer YOUR_API_KEY' } }
);
const data = await res.json();
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/coin/BTC/open-positions/history",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
)

result = response.json()
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 200 Success: Returns a JSON object containing a `downloadUrl` for the snapshot file and a `nextCursor` for pagination. The `downloadUrl` is a short-lived pre-signed link, valid for 120 seconds. Omit `start`, `end`, and `nextCursor` to receive the latest snapshot.

<details>

<summary>Response Example</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
{
  "coin": "BTC",
  "snapshot": {
    "snapshotId": "9921ef00-340f-4cb8-a366-cf5142bff112",
    "coin": "BTC",
    "stateVersion": 1776551565204,
    "rowCount": 30043,
    "status": "completed",
    "format": "csv",
    "createdAt": "2026-04-18T22:32:45.586Z",
    "completedAt": "2026-04-18T22:34:12.952Z",
    "downloadUrl": "https://prod-eu-west-1-hypetracker-private.s3.eu-west-1.amazonaws.com/aggregator/snapshots/open-positions/9921ef00-340f-4cb8-a366-cf5142bff112/BTC.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-.......GetObject"
  },
  "nextCursor": null
}
```

{% endcode %}

</details>

<details>

<summary>CSV content preview</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
[
  {
    "id": "acae1c63dff1daed116fe1dab8c6bf0e637c0d789f23f18beb0faaaac4b7dee5",
    "address": "0x92ea19eceb7a8de0f50978a1583a5d8b018050e9",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 1268.33487,
    "value": 79468789.61471999,
    "entryPrice": 76117.35411242774,
    "unrealizedPnl": -17073504.818210002,
    "funding": -263798.00354,
    "liquidationPrice": 26279.38560667821,
    "liquidationProgress": 27.010238410650263,
    "crossLeverage": 5,
    "isolatedLeverage": 0,
    "openTime": "2026-05-20T14:25:41.000Z",
    "profile_totalEquity": 58472882.159126,
    "profile_perpEquity": 21449518.61008999,
    "profile_countOpenPositions": 2,
    "profile_pnl": -6294515.17342,
    "profile_balance": 57503193.11059016,
    "profile_perpPnlSegmentId": 15,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "bc36a1dd01ca5800016278ef36bdb100250fa67dab338e381ce49590df4b2bdc",
    "address": "0x8ea85cbd59affca28162fc286d5c093dd0f8edbc",
    "coin": "BTC",
    "side": "long",
    "dex": "main",
    "size": 1000,
    "value": 62656000,
    "entryPrice": 72771.27831646,
    "unrealizedPnl": -10115278.316459997,
    "funding": -280466.510257,
    "liquidationPrice": 46961.80869160163,
    "liquidationProgress": 39.19212003766818,
    "crossLeverage": 4,
    "isolatedLeverage": 0,
    "openTime": "2026-02-23T02:19:37.000Z",
    "profile_totalEquity": 16685356.311913,
    "profile_perpEquity": 15586130.8757,
    "profile_countOpenPositions": 1,
    "profile_pnl": -10036245.944172,
    "profile_balance": 16281215.12427999,
    "profile_perpPnlSegmentId": 15,
    "profile_sizeSegmentId": 7
  },
  {
    "id": "1ee1873e7df32a64891d036c60b1ff5d77e4db3bf24eab829229c02894d4e8a1",
    "address": "0xcf90cfecf74e631feea816d02e757c0c8e895c0e",
    "coin": "BTC",
    "side": "short",
    "dex": "main",
    "size": 763.47463,
    "value": 47836266.41728,
    "entryPrice": 68858.80776968319,
    "unrealizedPnl": 4735686.366919999,
    "funding": 84513.947445,
    "liquidationPrice": 79627.47369369611,
    "liquidationProgress": 0,
    "crossLeverage": 0,
    "isolatedLeverage": 15,
    "openTime": "2026-06-02T13:42:02.000Z",
    "profile_totalEquity": 13717209.55130035,
    "profile_perpEquity": 13717209.04905099,
    "profile_countOpenPositions": 1,
    "profile_pnl": 2411338.115415,
    "profile_balance": 13717209.55130035,
    "profile_perpPnlSegmentId": 8,
    "profile_sizeSegmentId": 7
  }
]
```

{% endcode %}

</details>

***

### Get Market-Wide Open Interest Snapshot

`/api/external/positions/coins`

{% hint style="success" %}
**Unique to HyperTracker Users**
{% endhint %}

Returns a live market-wide snapshot of open interest across every coin.

Each coin includes total open interest, total position count, and long/short position counts. Results are sorted by `totalValue` descending.

Note: `totalValueLong` and `totalValueShort` represent both sides of total open interest and will usually match at the market level.

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl -X GET \
  'https://ht-api.coinmarketman.com/api/external/positions/coins' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/positions/coins",
    headers={
        "accept": "application/json",
        "Authorization": "Bearer YOUR_API_KEY",
    },
)

result = response.json()
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 200 Success: Returns all coins with open positions, sorted by `totalValue` descending.

<details>

<summary>Response Example</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
[
    {
        "coin": "BTC",
        "totalValue": 1765951118.63036,
        "totalValueLong": 882975559.31518,
        "totalValueShort": 882975559.31518,
        "count": 25640,
        "countLong": 13706,
        "countShort": 11934
    },
    {
        "coin": "ETH",
        "totalValue": 1235590741.88172,
        "totalValueLong": 617795370.94086,
        "totalValueShort": 617795370.94086,
        "count": 12834,
        "countLong": 7212,
        "countShort": 5622
    },
    {
        "coin": "HYPE",
        "totalValue": 806717586.6918,
        "totalValueLong": 403358793.3459,
        "totalValueShort": 403358793.3459,
        "count": 11446,
        "countLong": 7747,
        "countShort": 3699
    },
    {
        "coin": "SOL",
        "totalValue": 328269934.76592,
        "totalValueLong": 164134967.38296,
        "totalValueShort": 164134967.38296,
        "count": 8802,
        "countLong": 5497,
        "countShort": 3305
    },
    {
        "coin": "xyz:BRENTOIL",
        "totalValue": 281168989.75684,
        "totalValueLong": 140584494.87842,
        "totalValueShort": 140584494.87842,
        "count": 2276,
        "countLong": 1801,
        "countShort": 475
    },
    {
        "coin": "xyz:GOLD",
        "totalValue": 176855530.61352,
        "totalValueLong": 88427765.30676,
        "totalValueShort": 88427765.30676,
        "count": 3787,
        "countLong": 3065,
        "countShort": 722
    },
    {
        "coin": "xyz:SILVER",
        "totalValue": 120338483.02224,
        "totalValueLong": 60169241.51112,
        "totalValueShort": 60169241.51112,
        "count": 2660,
        "countLong": 2050,
        "countShort": 610
    },
    {
        "coin": "xyz:SP500",
        "totalValue": 91016161.9192,
        "totalValueLong": 45508080.9596,
        "totalValueShort": 45508080.9596,
        "count": 1431,
        "countLong": 671,
        "countShort": 760
    },
    {
        "coin": "XRP",
        "totalValue": 71779486.54,
        "totalValueLong": 35889743.27,
        "totalValueShort": 35889743.27,
        "count": 3537,
        "countLong": 1720,
        "countShort": 1817
    },
    {
        "coin": "TAO",
        "totalValue": 67034833.76916,
        "totalValueLong": 33517416.88458,
        "totalValueShort": 33517416.88458,
        "count": 3278,
        "countLong": 2349,
        "countShort": 929
    },
    {
        "coin": "xyz:NVDA",
        "totalValue": 55668024.18784,
        "totalValueLong": 27834012.09392,
        "totalValueShort": 27834012.09392,
        "count": 1954,
        "countLong": 1256,
        "countShort": 698
    },
    {
        "coin": "hyna:BTC",
        "totalValue": 38283167.558954,
        "totalValueLong": 19141583.779477,
        "totalValueShort": 19141583.779477,
        "count": 641,
        "countLong": 358,
        "countShort": 283
    },
    {
        "coin": "cash:USA500",
        "totalValue": 34492601.1836,
        "totalValueLong": 17246300.5918,
        "totalValueShort": 17246300.5918,
        "count": 461,
        "countLong": 169,
        "countShort": 292
    },
    {
        "coin": "LINK",
        "totalValue": 28718043.86628,
        "totalValueLong": 14359021.93314,
        "totalValueShort": 14359021.93314,
        "count": 2423,
        "countLong": 1484,
        "countShort": 939
    },
    {
        "coin": "kPEPE",
        "totalValue": 25785148.565904,
        "totalValueLong": 12892574.282952,
        "totalValueShort": 12892574.282952,
        "count": 944,
        "countLong": 530,
        "countShort": 414
    },
    {
        "coin": "xyz:TSLA",
        "totalValue": 20687021.83976,
        "totalValueLong": 10343510.91988,
        "totalValueShort": 10343510.91988,
        "count": 1357,
        "countLong": 753,
        "countShort": 604
    },
    {
        "coin": "xyz:GOOGL",
        "totalValue": 19738477.61976,
        "totalValueLong": 9869238.80988,
        "totalValueShort": 9869238.80988,
        "count": 939,
        "countLong": 630,
        "countShort": 309
    },
    {
        "coin": "DOGE",
        "totalValue": 20819727.59838,
        "totalValueLong": 10409863.79919,
        "totalValueShort": 10409863.79919,
        "count": 2669,
        "countLong": 1169,
        "countShort": 1500
    },
    {
        "coin": "SUI",
        "totalValue": 16777689.720792,
        "totalValueLong": 8388844.860396,
        "totalValueShort": 8388844.860396,
        "count": 2533,
        "countLong": 982,
        "countShort": 1551
    },
    {
        "coin": "flx:OIL",
        "totalValue": 6497041.27776,
        "totalValueLong": 3248520.63888,
        "totalValueShort": 3248520.63888,
        "count": 276,
        "countLong": 232,
        "countShort": 44
    },
    {
        "coin": "xyz:AAPL",
        "totalValue": 5377829.41212,
        "totalValueLong": 2688914.70606,
        "totalValueShort": 2688914.70606,
        "count": 512,
        "countLong": 344,
        "countShort": 168
    },
    {
        "coin": "cash:GOLD",
        "totalValue": 4069409.72214,
        "totalValueLong": 2034704.86107,
        "totalValueShort": 2034704.86107,
        "count": 104,
        "countLong": 80,
        "countShort": 24
    },
    {
        "coin": "vntl:MAG7",
        "totalValue": 2219694.484446,
        "totalValueLong": 1109847.242223,
        "totalValueShort": 1109847.242223,
        "count": 105,
        "countLong": 47,
        "countShort": 58
    },
    {
        "coin": "vntl:SPACEX",
        "totalValue": 1768424.6394,
        "totalValueLong": 884212.3197,
        "totalValueShort": 884212.3197,
        "count": 338,
        "countLong": 294,
        "countShort": 44
    },
    {
        "coin": "km:US500",
        "totalValue": 3659844.62526,
        "totalValueLong": 1829922.31263,
        "totalValueShort": 1829922.31263,
        "count": 234,
        "countLong": 108,
        "countShort": 126
    },
    {
        "coin": "flx:GOLD",
        "totalValue": 1360947.1584,
        "totalValueLong": 680473.5792,
        "totalValueShort": 680473.5792,
        "count": 108,
        "countLong": 91,
        "countShort": 17
    },
    {
        "coin": "vntl:ANTHROPIC",
        "totalValue": 1117108.291,
        "totalValueLong": 558554.1455,
        "totalValueShort": 558554.1455,
        "count": 220,
        "countLong": 195,
        "countShort": 25
    },
    {
        "coin": "hyna:ETH",
        "totalValue": 6547578.73236,
        "totalValueLong": 3273789.36618,
        "totalValueShort": 3273789.36618,
        "count": 282,
        "countLong": 139,
        "countShort": 143
    },
    {
        "coin": "km:SILVER",
        "totalValue": 927039.43548,
        "totalValueLong": 463519.71774,
        "totalValueShort": 463519.71774,
        "count": 78,
        "countLong": 57,
        "countShort": 21
    },
    {
        "coin": "flx:PALLADIUM",
        "totalValue": 348865.6896,
        "totalValueLong": 174432.8448,
        "totalValueShort": 174432.8448,
        "count": 26,
        "countLong": 18,
        "countShort": 8
    },
    {
        "coin": "km:SEMI",
        "totalValue": 17186.22108,
        "totalValueLong": 8593.11054,
        "totalValueShort": 8593.11054,
        "count": 5,
        "countLong": 3,
        "countShort": 2
    }
]
```

{% endcode %}

</details>

***

### Get Open Interest & Position Count Time Series (Coin)

`GET /api/external/position-metrics/coin/{coin}`

<figure><img src="https://797705725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkv2IiibnImsf0K43fna%2Fuploads%2FU7zMDZ3DNUDqNOHJI2LL%2FScreenshot%202026-04-26%20at%2017.56.50.png?alt=media&amp;token=27bbc56a-f430-4699-9552-ffce67155ebc" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Unique to HyperTracker Users**

Full-market position metrics not available via the Hyperliquid API.
{% endhint %}

Returns historical snapshots of open interest and position counts for a selected coin.

Each snapshot includes total open interest, position counts, long-side breakdowns, funding, unrealized PnL, and total position size.

* **History:** Available from 23 March 2026, depending on the coin.
* **Frequency:** Older backfilled data contains up to one snapshot per hour; newer data is captured on state updates. Gaps may occur. Use `createdAt` for each snapshot’s actual timestamp.

<details>

<summary>Path Parameters</summary>

<table><thead><tr><th width="116.37109375">Parameter</th><th width="97.7109375">Type</th><th width="107.375">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>coin</code></td><td><code>string</code></td><td>Yes</td><td>Coin ticker, for example <code>BTC</code>, <code>ETH</code> or <code>xyz:GOLD</code>.</td></tr></tbody></table>

</details>

<details>

<summary>Query Parameters</summary>

<table><thead><tr><th width="126.75390625">Parameter</th><th width="97.90234375">Type</th><th width="114.0625">Required</th><th width="324.8671875">Description</th></tr></thead><tbody><tr><td><code>start</code></td><td><code>string</code></td><td>Yes</td><td>Start of the time window (ISO 8601, UTC), for example <code>2026-03-23T00:00:00Z</code>.</td></tr><tr><td><code>end</code></td><td><code>string</code></td><td>Optional</td><td>End of the time window (ISO 8601, UTC). Defaults to now; must be later than <code>start</code>.</td></tr><tr><td><code>limit</code></td><td><code>number</code></td><td>Optional</td><td>Maximum snapshots per response: <strong>1,000</strong>.</td></tr><tr><td><code>nextCursor</code></td><td><code>string</code></td><td>Optional</td><td>Cursor from the previous response. Omit for the first page.</td></tr></tbody></table>

</details>

**Pagination:** Results are newest first. Pass `nextCursor` from each response to retrieve the next page, keeping the same coin and time window. Continue until `nextCursor` is `null`.

Request Examples

{% tabs %}
{% tab title="cURL" %}
{% code expandable="true" collapsedlinecount="10" %}

```bash
curl --get \
  'https://ht-api.coinmarketman.com/api/external/position-metrics/coin/BTC' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --data-urlencode 'start=2026-03-23T00:00:00Z' \
  --data-urlencode 'end=2026-11-12T00:00:00Z' \
  --data-urlencode 'limit=1000'
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code expandable="true" collapsedlinecount="10" %}

```python
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/position-metrics/coin/BTC",
    params={
        "start": "2026-03-23T00:00:00Z",
        "end": "2026-11-12T00:00:00Z",
        "limit": 1000,
    },
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)
response.raise_for_status()

data = response.json()
print(data)
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code expandable="true" collapsedlinecount="10" %}

```javascript
const url = new URL(
  "https://ht-api.coinmarketman.com/api/external/position-metrics/coin/BTC"
);
url.search = new URLSearchParams({
  start: "2026-03-23T00:00:00Z",
  end: "2026-11-12T00:00:00Z",
  limit: "1000",
}).toString();

const response = await fetch(url, {
  headers: { Authorization: "Bearer YOUR_API_KEY" },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);

const data = await response.json();
console.log(data);
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 200 Success: Returns `metrics` and `nextCursor` for pagination.

Note: Long and short position sizes will always balance at the market level.

`countInProfit`: Number of open positions in profit at the snapshot time.

<details>

<summary>Response Example</summary>

Shortened example; the cursor value is illustrative.

{% code expandable="true" collapsedlinecount="10" %}

```json
{
  "metrics": [
    {
      "id": 13010923,
      "createdAt": "2026-11-11T08:19:19.200Z",
      "coin": "BTC",
      "positionCount": 41219,
      "positionCountLong": 28447,
      "totalPositionValue": 3000808856.56304,
      "totalPositionValueLong": 1500404428.2815201,
      "totalFunding": 7305403.897304,
      "totalUnrealizedPnl": -20438278.095952988,
      "totalPositionSize": 40517.52392,
      "totalPositionSizeLong": 20258.76196,
      "countInProfit": 16963
    }
  ],
  "nextCursor": "NEXT_PAGE_CURSOR"
}
```

{% endcode %}

</details>

***

### Export Open Interest & Position Count History (Coin)

`/api/external/exports/coins/{coin}/position-metrics`

{% hint style="success" %}
**Unique to HyperTracker Users**

Export-ready historical position metrics for a selected coin, sampled at 2-hour intervals.
{% endhint %}

Exports historical open interest and position count data for a selected coin in a compact column/data format.

Returns the latest **14 days**. For longer history, use the [Open Interest & Position Count Time Series endpoint](https://docs.coinmarketman.com/endpoints/positions-and-market-data.md#get-open-interest-and-position-count-time-series-coin).

<figure><img src="https://797705725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkv2IiibnImsf0K43fna%2Fuploads%2FU7zMDZ3DNUDqNOHJI2LL%2FScreenshot%202026-04-26%20at%2017.56.50.png?alt=media&amp;token=27bbc56a-f430-4699-9552-ffce67155ebc" alt=""><figcaption></figcaption></figure>

Snapshots are sampled at 2-hour intervals and include total position count, long position count, total open interest, and long-side open interest.

The top-level `coin` applies to every row. The `columns` array defines the order of the five values in each `data` row.

<details>

<summary>Path Parameters</summary>

<table><thead><tr><th width="117.709716796875">Parameter</th><th width="112.782958984375">Type</th><th width="431.992919921875">Description</th></tr></thead><tbody><tr><td><code>coin</code></td><td><code>string</code></td><td>Coin symbol (case-insensitive), for example <code>BTC</code>, <code>ETH</code>.</td></tr></tbody></table>

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --url 'https://ht-api.coinmarketman.com/api/external/exports/coins/BTC/position-metrics' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --location
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

response = requests.get(
    'https://ht-api.coinmarketman.com/api/external/exports/coins/BTC/position-metrics',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    allow_redirects=True
)

export_data = response.json()
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> **Redirect:** Follow the redirect to the temporary pre-signed S3 URL to download the JSON export shown below.

<details>

<summary>Response Example</summary>

**Downloaded JSON export:**

{% code expandable="true" collapsedlinecount="10" %}

```
{
    "coin": "BTC",
    "metrics": {
        "columns": [
            "timestamp",
            "positionCount",
            "positionCountLong",
            "totalPositionValue",
            "totalPositionValueLong"
        ],
        "data": [
            ["2026-03-24T09:54:30.589Z", 25640, 13706, 1765951118.63036, 882975559.31518],
            ["2026-03-24T08:00:00.000Z", 25488, 13152, 1766198955.7212, 883099477.8606],
            ["2026-03-24T06:00:00.000Z", 25655, 12992, 1733810692.98744, 866905346.49372],
            ["2026-03-24T04:00:00.000Z", 25600, 12968, 1715803523.40644, 857901761.70322],
            ["2026-03-24T02:00:00.000Z", 25556, 12992, 1713680972.40384, 856840486.20192],
            ["2026-03-24T00:00:00.000Z", 25501, 12962, 1728152715.48128, 864076357.74064],
            ["2026-03-23T22:00:00.000Z", 25443, 12905, 1781051824.34576, 890525912.17288],
            ["2026-03-23T20:00:00.000Z", 25325, 12822, 1779972493.28976, 889986246.64488],
            ["2026-03-23T18:00:00.000Z", 25196, 12856, 1827849867.7554, 913924933.8777],
            ["2026-03-23T16:00:00.000Z", 24852, 12568, 1770007000.5952, 885003500.2976],
            ["2026-03-23T14:00:00.000Z", 24470, 12637, 1812248370.2352, 906124185.1176],
            ["2026-03-23T12:00:00.000Z", 24634, 12776, 1793341385.21416, 896670692.60708],
            ["2026-03-23T10:00:00.000Z", 25886, 13461, 1747494507.645, 873747253.8225],
            ["2026-03-23T08:00:00.000Z", 25746, 13444, 1743808608.777, 871904304.3885],
            ["2026-03-23T06:00:00.000Z", 25690, 13474, 1737122502.4839, 868561251.24195],
            ["2026-03-23T04:00:00.000Z", 25865, 13397, 1701215485.64928, 850607742.82464],
            ["2026-03-23T02:00:00.000Z", 25912, 13342, 1710561102.2496, 855280551.1248],
            ["2026-03-23T00:00:00.000Z", 25789, 13276, 1719504979.25484, 859752489.62742],
            ["2026-03-22T22:00:00.000Z", 25561, 12984, 1781161368.2072, 890580684.1036],
            ["2026-03-22T20:00:00.000Z", 26556, 13981, 1813345222.23306, 906672611.11653],
            ["2026-03-22T18:00:00.000Z", 26565, 14026, 1830387920.80402, 915193960.40201],
            ["2026-03-22T16:00:00.000Z", 26421, 13980, 1830808626.93108, 915404313.46554],
            ["2026-03-22T14:00:00.000Z", 26281, 13437, 1844737176.92648, 922368588.46324],
            ["2026-03-22T12:00:00.000Z", 26038, 13183, 1850311054.02234, 925155527.01117],
            ["2026-03-22T10:00:00.000Z", 26210, 13310, 1839093069.13024, 919546534.56512],
            ["2026-03-22T08:00:00.000Z", 25937, 13153, 1851189262.9929, 925594631.49645],
            ["2026-03-22T06:00:00.000Z", 25764, 13166, 1840702656.7743, 920351328.38715],
            ["2026-03-22T04:00:00.000Z", 25671, 13142, 1842157346.79636, 921078673.39818],
            ["2026-03-22T02:00:00.000Z", 25158, 12943, 1804662317.94578, 902331158.97289],
            ["2026-03-22T00:00:00.000Z", 24704, 12508, 1796392924.07048, 898196462.03524],
            ["2026-03-21T22:00:00.000Z", 26695, 14194, 1852206253.65936, 926103126.82968],
            ["2026-03-21T20:00:00.000Z", 26643, 14157, 1853809191.3649, 926904595.68245],
            ["2026-03-21T18:00:00.000Z", 26499, 14063, 1859424072.54912, 929712036.27456],
            ["2026-03-21T16:00:00.000Z", 26478, 14041, 1866973308.14064, 933486654.07032],
            ["2026-03-21T14:00:00.000Z", 26567, 14154, 1880864596.96866, 940432298.48433],
            ["2026-03-21T12:00:00.000Z", 26492, 14111, 1903903098.73632, 951951549.36816],
            ["2026-03-21T10:00:00.000Z", 26364, 13999, 1896074758.49898, 948037379.24949],
            ["2026-03-21T08:00:00.000Z", 26286, 14035, 1878875514.19298, 939437757.09649],
            ["2026-03-21T06:00:00.000Z", 26171, 13951, 1886970721.76844, 943485360.88422],
            ["2026-03-21T04:00:00.000Z", 26122, 13919, 1870295917.0392, 935147958.5196],
            ["2026-03-21T02:00:00.000Z", 25974, 13836, 1871190838.53918, 935595419.26959],
            ["2026-03-21T00:00:00.000Z", 25941, 13836, 1879354822.9548, 939677411.4774],
            ["2026-03-20T22:00:00.000Z", 25901, 13766, 1929939252.27754, 964969626.13877],
            ["2026-03-20T20:00:00.000Z", 26219, 13690, 1917041269.429, 958520634.7145],
            ["2026-03-20T18:00:00.000Z", 26124, 13592, 1877461164.53226, 938730582.26613],
            ["2026-03-20T16:00:00.000Z", 26033, 13534, 1876110089.48268, 938055044.74134],
            ["2026-03-20T14:00:00.000Z", 25859, 13539, 1859239618.36568, 929619809.18284],
            ["2026-03-20T12:00:00.000Z", 25829, 13874, 1860622930.41664, 930311465.20832],
            ["2026-03-20T10:00:00.000Z", 25681, 13821, 1883874682.8504, 941937341.4252],
            ["2026-03-20T08:00:00.000Z", 25537, 13789, 1948956732.78244, 974478366.39122],
            ["2026-03-20T06:00:00.000Z", 25844, 13862, 1957874901.63888, 978937450.81944],
            ["2026-03-20T04:00:00.000Z", 25614, 13696, 1992332206.79432, 996166103.39716],
            ["2026-03-20T02:00:00.000Z", 25841, 13683, 1992083915.64992, 996041957.82496],
            ["2026-03-20T00:00:00.000Z", 25709, 13518, 1986293620.17238, 993146810.08619],
            ["2026-03-19T22:00:00.000Z", 25758, 13711, 2046705900.73236, 1023352950.36618],
            ["2026-03-19T20:00:00.000Z", 25556, 13507, 1922864556.96036, 961432278.48018],
            ["2026-03-19T18:00:00.000Z", 25941, 13097, 1957744308.90106, 978872154.45053],
            ["2026-03-19T16:00:00.000Z", 25664, 12651, 1961552912.544, 980776456.272],
            ["2026-03-19T14:00:00.000Z", 25500, 12543, 1981661288.81952, 990830644.40976],
            ["2026-03-19T12:00:00.000Z", 25829, 12708, 1975288268.89968, 987644134.44984],
            ["2026-03-19T10:00:00.000Z", 25543, 12614, 1949132465.30288, 974566232.65144],
            ["2026-03-19T08:00:00.000Z", 24676, 13110, 1929878611.79764, 964939305.89882],
            ["2026-03-19T06:00:00.000Z", 26282, 14279, 1927560433.23664, 963780216.61832],
            ["2026-03-19T04:00:00.000Z", 26020, 14180, 1977352916.44608, 988676458.22304],
            ["2026-03-19T02:00:00.000Z", 26209, 14170, 1967613977.92184, 983806988.96092],
            ["2026-03-19T00:00:00.000Z", 26071, 14094, 1982363544.3402, 991181772.1701],
            ["2026-03-18T22:00:00.000Z", 25924, 13908, 1949159023.68618, 974579511.84309],
            ["2026-03-18T20:00:00.000Z", 25436, 13629, 1923113614.01784, 961556807.00892],
            ["2026-03-18T18:00:00.000Z", 25856, 14080, 1962638858.74434, 981319429.37217],
            ["2026-03-18T16:00:00.000Z", 25321, 13462, 1941574171.62672, 970787085.81336],
            ["2026-03-18T14:00:00.000Z", 26045, 13515, 1883383126.55358, 941691563.27679],
            ["2026-03-18T12:00:00.000Z", 25720, 13168, 1884526822.57878, 942263411.28939],
            ["2026-03-18T10:00:00.000Z", 26645, 14010, 1924805991.626, 962402995.813],
            ["2026-03-18T08:00:00.000Z", 26623, 14017, 1927113655.05464, 963556827.52732],
            ["2026-03-18T06:00:00.000Z", 26436, 13880, 1942486731.77232, 971243365.88616],
            ["2026-03-18T04:00:00.000Z", 26433, 13880, 1955320828.01864, 977660414.00932],
            ["2026-03-18T02:00:00.000Z", 26399, 13831, 1959801132.178, 979900566.089],
            ["2026-03-18T00:00:00.000Z", 26487, 13881, 1936971916.29216, 968485958.14608],
            ["2026-03-17T22:00:00.000Z", 26418, 13938, 1938401200.95864, 969200600.47932],
            ["2026-03-17T20:00:00.000Z", 26544, 14156, 2004384537.9956, 1002192268.9978],
            ["2026-03-17T18:00:00.000Z", 26174, 13920, 1993191114.36332, 996595557.18166],
            ["2026-03-17T16:00:00.000Z", 26068, 13842, 1940767087.26762, 970383543.63381],
            ["2026-03-17T14:00:00.000Z", 25713, 13678, 1895388785.77776, 947694392.88888],
            ["2026-03-17T12:00:00.000Z", 26023, 13709, 1890131648.6093, 945065824.30465],
            ["2026-03-17T10:00:00.000Z", 25884, 13675, 1912230958.17348, 956115479.08674],
            ["2026-03-17T08:00:00.000Z", 25714, 13624, 1919240682.77376, 959620341.38688],
            ["2026-03-17T06:00:00.000Z", 25351, 13299, 1923352104.71844, 961676052.35922],
            ["2026-03-17T04:00:00.000Z", 24951, 13297, 1990421272.43232, 995210636.21616],
            ["2026-03-17T02:00:00.000Z", 25416, 13950, 2031640962.98046, 1015820481.49023],
            ["2026-03-17T00:00:00.000Z", 26177, 14129, 1995327714.51292, 997663857.25646],
            ["2026-03-16T22:00:00.000Z", 26072, 13701, 1965875959.3215, 982937979.66075],
            ["2026-03-16T20:00:00.000Z", 26569, 13659, 1942025453.3178, 971012726.6589],
            ["2026-03-16T18:00:00.000Z", 26311, 13654, 1982420102.40768, 991210051.20384],
            ["2026-03-16T16:00:00.000Z", 26201, 13542, 1935930468.0716, 967965234.0358],
            ["2026-03-16T14:00:00.000Z", 26111, 13537, 1924168422.89232, 962084211.44616],
            ["2026-03-16T12:00:00.000Z", 26011, 13598, 1924354808.4068, 962177404.2034],
            ["2026-03-16T10:00:00.000Z", 25703, 13372, 1930530768.47104, 965265384.23552],
            ["2026-03-16T08:00:00.000Z", 25677, 13335, 1930126026.20628, 965063013.10314],
            ["2026-03-16T06:00:00.000Z", 25281, 13485, 1957496259.3744, 978748129.6872],
            ["2026-03-16T04:00:00.000Z", 25096, 13412, 1933700487.4356, 966850243.7178],
            ["2026-03-16T02:00:00.000Z", 25702, 13789, 1917277043.01364, 958638521.50682],
            ["2026-03-16T00:00:00.000Z", 25436, 13775, 1901478712.00228, 950739356.00114],
            ["2026-03-15T22:00:00.000Z", 25787, 13960, 1866741224.9477, 933370612.47385],
            ["2026-03-15T20:00:00.000Z", 26048, 13980, 1871332105.3478, 935666052.6739],
            ["2026-03-15T18:00:00.000Z", 26008, 13968, 1902899920.68576, 951449960.34288],
            ["2026-03-15T16:00:00.000Z", 26086, 13923, 1891984411.7506, 945992205.8753],
            ["2026-03-15T14:00:00.000Z", 25893, 13845, 1856666865.6582, 928333432.8291],
            ["2026-03-15T12:00:00.000Z", 25899, 14469, 1880397801.00144, 940198900.50072],
            ["2026-03-15T10:00:00.000Z", 25836, 14487, 1888721477.55002, 944360738.77501],
            ["2026-03-15T08:00:00.000Z", 25769, 13901, 1847265945.85146, 923632972.92573],
            ["2026-03-15T06:00:00.000Z", 25572, 13837, 1852658067.6373, 926329033.81865],
            ["2026-03-15T04:00:00.000Z", 25626, 13797, 1849858704.27144, 924929352.13572],
            ["2026-03-15T02:00:00.000Z", 25752, 13718, 1818851543.48598, 909425771.74299],
            ["2026-03-15T00:00:00.000Z", 25700, 13648, 1820628465.0058, 910314232.5029],
            ["2026-03-14T22:00:00.000Z", 25867, 13547, 1811290262.90214, 905645131.45107],
            ["2026-03-14T20:00:00.000Z", 25810, 13495, 1816774568.81338, 908387284.40669],
            ["2026-03-14T18:00:00.000Z", 25809, 13391, 1818594146.18344, 909297073.09172],
            ["2026-03-14T16:00:00.000Z", 25758, 13359, 1825696779.984, 912848389.992],
            ["2026-03-14T14:00:00.000Z", 25574, 13269, 1836989036.22036, 918494518.11018],
            ["2026-03-14T12:00:00.000Z", 25469, 13161, 1819453305.31524, 909726652.65762],
            ["2026-03-14T10:00:00.000Z", 25390, 13048, 1816269561.02852, 908134780.51426],
            ["2026-03-14T08:00:00.000Z", 25168, 12928, 1833445348.19522, 916722674.09761],
            ["2026-03-14T06:00:00.000Z", 25139, 13034, 1833618104.60738, 916809052.30369],
            ["2026-03-14T04:00:00.000Z", 25201, 12952, 1847019935.8628, 923509967.9314],
            ["2026-03-14T02:00:00.000Z", 25153, 12776, 1848258268.61678, 924129134.30839],
            ["2026-03-14T00:00:00.000Z", 25156, 12807, 1861514009.7194, 930757004.8597],
            ["2026-03-13T22:00:00.000Z", 24871, 12706, 1908119667.64088, 954059833.82044],
            ["2026-03-13T20:00:00.000Z", 25235, 12821, 1883072925.92634, 941536462.96317],
            ["2026-03-13T18:00:00.000Z", 25084, 12684, 1884009667.58152, 942004833.79076],
            ["2026-03-13T16:00:00.000Z", 25190, 12728, 1905515195.56632, 952757597.78316],
            ["2026-03-13T14:00:00.000Z", 24777, 13286, 1966190113.3744, 983095056.6872],
            ["2026-03-13T12:00:00.000Z", 25378, 13667, 1911167407.05688, 955583703.52844],
            ["2026-03-13T10:00:00.000Z", 25458, 13772, 1922982357.9564, 961491178.9782],
            ["2026-03-13T08:00:00.000Z", 25578, 13470, 1847935437.91312, 923967718.95656],
            ["2026-03-13T06:00:00.000Z", 25297, 13017, 1826730338.8877, 913365169.44385],
            ["2026-03-13T04:00:00.000Z", 25038, 12915, 1820928552.88108, 910464276.44054],
            ["2026-03-13T02:00:00.000Z", 25065, 12949, 1863097091.939, 931548545.9695],
            ["2026-03-13T00:00:00.000Z", 24710, 12757, 1899736533.38716, 949868266.69358],
            ["2026-03-12T22:00:00.000Z", 25411, 12369, 1847649861.40412, 923824930.70206],
            ["2026-03-12T20:00:00.000Z", 25367, 12343, 1862939888.14944, 931469944.07472],
            ["2026-03-12T18:00:00.000Z", 25340, 12423, 1910226185.57808, 955113092.78904],
            ["2026-03-12T16:00:00.000Z", 25139, 12360, 1897145408.29632, 948572704.14816],
            ["2026-03-12T14:00:00.000Z", 25161, 12442, 1921827603.29268, 960913801.64634],
            ["2026-03-12T12:00:00.000Z", 25032, 12539, 1897320710.88472, 948660355.44236],
            ["2026-03-12T10:00:00.000Z", 24986, 12601, 1847451526.28784, 923725763.14392],
            ["2026-03-12T08:00:00.000Z", 25100, 12990, 1802189119.35576, 901094559.67788],
            ["2026-03-12T06:00:00.000Z", 25045, 12740, 1814720782.36148, 907360391.18074],
            ["2026-03-12T04:00:00.000Z", 24971, 12660, 1818627664.2336, 909313832.1168],
            ["2026-03-12T02:00:00.000Z", 25154, 12637, 1819637721.74864, 909818860.87432],
            ["2026-03-12T00:00:00.000Z", 24996, 12756, 1816659204.4083, 908329602.20415],
            ["2026-03-11T22:00:00.000Z", 25218, 13423, 1787795072.9439, 893897536.47195],
            ["2026-03-11T20:00:00.000Z", 25116, 13366, 1797676946.67416, 898838473.33708],
            ["2026-03-11T18:00:00.000Z", 25010, 13302, 1859524803.68736, 929762401.84368],
            ["2026-03-11T16:00:00.000Z", 24972, 12770, 1865524515.77934, 932762257.88967],
            ["2026-03-11T14:00:00.000Z", 24782, 12826, 1830127078.51766, 915063539.25883],
            ["2026-03-11T12:00:00.000Z", 25023, 12485, 1759411407.80392, 879705703.90196],
            ["2026-03-11T10:00:00.000Z", 25344, 12926, 1751408032.85784, 875704016.42892],
            ["2026-03-11T08:00:00.000Z", 25200, 12901, 1752250812.59316, 876125406.29658],
            ["2026-03-11T06:00:00.000Z", 24997, 12744, 1750187364.3462, 875093682.1731],
            ["2026-03-11T04:00:00.000Z", 25086, 12736, 1772448627.49662, 886224313.74831],
            ["2026-03-11T02:00:00.000Z", 24975, 12738, 1760437173.7956, 880218586.8978],
            ["2026-03-11T00:00:00.000Z", 24795, 12688, 1778348660.62718, 889174330.31359],
            ["2026-03-10T22:00:00.000Z", 24634, 12473, 1757688002.016, 878844001.008],
            ["2026-03-10T20:00:00.000Z", 24634, 12543, 1757515114.66346, 878757557.33173],
            ["2026-03-10T18:00:00.000Z", 24427, 12362, 1739828178.8553, 869914089.42765],
            ["2026-03-10T16:00:00.000Z", 24547, 12653, 1835299559.82576, 917649779.91288],
            ["2026-03-10T14:00:00.000Z", 24441, 12503, 1816165979.95704, 908082989.97852],
            ["2026-03-10T12:00:00.000Z", 24581, 12795, 1826799300.92032, 913399650.46016],
            ["2026-03-10T10:00:00.000Z", 24448, 12895, 1738473140.72928, 869236570.36464],
            ["2026-03-10T09:00:00.000Z", 24300, 12874, 1747578889.29664, 873789444.64832]
        ]
    }
}
```

{% endcode %}

</details>

***

### Export Position Breakdown by Size

`/api/external/exports/coins/{coin}/position-breakdown-by-size`

<figure><img src="https://797705725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkv2IiibnImsf0K43fna%2Fuploads%2FrKEv5FYfEdEv5X9kyy3y%2FScreenshot%202026-04-27%20at%2022.17.55.png?alt=media&amp;token=5e337196-8a05-4ba6-ab44-e1d13509031e" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
This export powers the **Position Breakdown by Size** table on the [Perps](https://app.coinmarketman.com/hypertracker/perps/btc) page in the HyperTracker
{% endhint %}

{% hint style="success" %}
**Unique to HyperTracker Users**

Export aggregated open-position size bucket data for any supported coin, based on HyperTracker’s full exchange-wide position tracking.
{% endhint %}

Returns a `302` redirect to a short-lived pre-signed S3 URL.

Follow the redirect to download a JSON export containing the current position breakdown by size for the requested coin.

This export buckets all currently open positions for the selected coin into predefined position-size ranges, showing position count, total value, long-side value, directional bias, and value close to liquidation for each bucket.

Use this endpoint to rebuild the **Position Breakdown by Size** table shown on the HyperTracker Perps page.

The pre-signed URL expires after `120` seconds.

<details>

<summary>Path Parameters</summary>

<table><thead><tr><th width="122.5859375">Parameter</th><th width="90.875" align="right">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>coin</code></td><td align="right"><code>string</code></td><td>Coin symbol, case-insensitive. Example: <code>BTC</code> or <code>ETH</code>.</td></tr><tr><td><code>file</code></td><td align="right"><code>string</code></td><td>Export file type. Use <code>position-breakdown-by-size</code>.</td></tr></tbody></table>

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --url 'https://ht-api.coinmarketman.com/api/external/exports/coins/BTC/position-breakdown-by-size' \
  --header 'accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --location
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code collapsedlinecount="10" %}

```
import requests

url = "https://ht-api.coinmarketman.com/api/external/exports/coins/BTC/position-breakdown-by-size"

headers = {
    "accept": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers, allow_redirects=True)
response.raise_for_status()

data = response.json()
print(data)
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 302 Found: Redirects to a temporary pre-signed S3 URL. Follow the redirect to download the export file.
>
> If your HTTP client does not follow redirects automatically, read the `Location` header and download the file from that URL.

<details>

<summary>Response Example</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
{
  "coin": "BTC",
  "createdAt": "2026-04-27T18:00:25.270Z",
  "breakdownBySize": [
    {
      "sizeSegmentId": 1,
      "size": "<$1k",
      "minSize": null,
      "maxSize": 1000,
      "positionCount": 16955,
      "pastPositionCount": 16818,
      "totalPositionValue": 4053999.39276,
      "pastTotalPositionValue": 4019817.3536,
      "totalPositionValueLong": 1972702.88576,
      "valueCloseToLiquidation": 7825.2742,
      "bias": 0.487
    },
    {
      "sizeSegmentId": 2,
      "size": "$1k-$10k",
      "minSize": 1000,
      "maxSize": 10000,
      "positionCount": 7673,
      "pastPositionCount": 7559,
      "totalPositionValue": 27849542.20272,
      "pastTotalPositionValue": 27619299.3796,
      "totalPositionValueLong": 13794701.15132,
      "valueCloseToLiquidation": 61009.5066,
      "bias": 0.495
    },
    {
      "sizeSegmentId": 3,
      "size": "$10k-$25k",
      "minSize": 10000,
      "maxSize": 25000,
      "positionCount": 2000,
      "pastPositionCount": 1999,
      "totalPositionValue": 32415400.49488,
      "pastTotalPositionValue": 32310389.2566,
      "totalPositionValueLong": 16200018.50696,
      "valueCloseToLiquidation": 125700.23096,
      "bias": 0.5
    },
    {
      "sizeSegmentId": 4,
      "size": "$25k-$50k",
      "minSize": 25000,
      "maxSize": 50000,
      "positionCount": 1129,
      "pastPositionCount": 1110,
      "totalPositionValue": 40348882.23344,
      "pastTotalPositionValue": 39882936.117,
      "totalPositionValueLong": 20402340.42656,
      "valueCloseToLiquidation": 175335.26592,
      "bias": 0.506
    },
    {
      "sizeSegmentId": 5,
      "size": "$50k-$100k",
      "minSize": 50000,
      "maxSize": 100000,
      "positionCount": 905,
      "pastPositionCount": 894,
      "totalPositionValue": 65344709.27436,
      "pastTotalPositionValue": 64433606.9904,
      "totalPositionValueLong": 31003338.78432,
      "valueCloseToLiquidation": 182257.88956,
      "bias": 0.474
    },
    {
      "sizeSegmentId": 6,
      "size": "$100k-$250k",
      "minSize": 100000,
      "maxSize": 250000,
      "positionCount": 811,
      "pastPositionCount": 803,
      "totalPositionValue": 129533483.93456,
      "pastTotalPositionValue": 128252690.5556,
      "totalPositionValueLong": 60182718.60016,
      "valueCloseToLiquidation": 571472.21436,
      "bias": 0.465
    },
    {
      "sizeSegmentId": 7,
      "size": "$250k-$500k",
      "minSize": 250000,
      "maxSize": 500000,
      "positionCount": 357,
      "pastPositionCount": 352,
      "totalPositionValue": 128202214.05448,
      "pastTotalPositionValue": 126201453.7062,
      "totalPositionValueLong": 56008588.3918,
      "valueCloseToLiquidation": 402635.87896,
      "bias": 0.437
    },
    {
      "sizeSegmentId": 8,
      "size": "$500k-$1m",
      "minSize": 500000,
      "maxSize": 1000000,
      "positionCount": 216,
      "pastPositionCount": 217,
      "totalPositionValue": 148842598.6314,
      "pastTotalPositionValue": 150030640.5228,
      "totalPositionValueLong": 73449052.1716,
      "valueCloseToLiquidation": 0,
      "bias": 0.493
    },
    {
      "sizeSegmentId": 9,
      "size": "$1m-$2.5m",
      "minSize": 1000000,
      "maxSize": 2500000,
      "positionCount": 154,
      "pastPositionCount": 156,
      "totalPositionValue": 249121762.02952,
      "pastTotalPositionValue": 254137649.6188,
      "totalPositionValueLong": 134236958.05912,
      "valueCloseToLiquidation": 3186377.96848,
      "bias": 0.539
    },
    {
      "sizeSegmentId": 10,
      "size": ">$2.5m",
      "minSize": 2500000,
      "maxSize": null,
      "positionCount": 153,
      "pastPositionCount": 157,
      "totalPositionValue": 1308896552.26428,
      "pastTotalPositionValue": 1340705948.1022,
      "totalPositionValueLong": 660054153.2786,
      "valueCloseToLiquidation": 0,
      "bias": 0.504
    }
  ]
}
```

{% endcode %}

</details>

***

#### Get 1-Second Candles

`/api/external/candles`

Returns 1-second OHLCV candles for a perp market, built from Hyperliquid fills. One request covers up to 600 seconds.

Candles are ordered by `dateOpen`. A second without trades is returned with `synthetic: true`: its prices equal the previous close, and its volumes and `tradeCount` are `0`. Ranges without data, or fully in the future, return an empty `candles` list.

<details>

<summary>Query Parameters</summary>

| Parameter | Type     | Description                                                                                                                 |
| --------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| `coin`    | `string` | **Required.** Perp market as Hyperliquid names it, for example `BTC` or `xyz:IBM`.                                          |
| `start`   | `string` | **Required.** Start of the range, inclusive. ISO 8601 with a timezone, for example `2026-10-27T12:00:00Z`.                  |
| `end`     | `string` | **Required.** End of the range, exclusive. Same format. At most 600 seconds after `start`. Future times are clamped to now. |
| `limit`   | `number` | Maximum number of candles returned. Default: the whole range.                                                               |

</details>

Request Examples

{% tabs %}
{% tab title="Curl" %}
{% code collapsedlinecount="10" %}

```
curl --request GET \
  --url 'https://ht-api.coinmarketman.com/api/external/candles?coin=BTC&start=2026-10-27T12:00:00Z&end=2026-10-27T12:00:05Z' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code expandable="true" collapsedlinecount="10" %}

```
const url = new URL("https://ht-api.coinmarketman.com/api/external/candles");
url.searchParams.set("coin", "BTC");
url.searchParams.set("start", "2026-10-27T12:00:00Z");
url.searchParams.set("end", "2026-10-27T12:00:05Z");

const response = await fetch(url.toString(), {
  headers: {
    Authorization: "Bearer YOUR_API_KEY"
  }
});

const data = await response.json();
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code expandable="true" collapsedlinecount="10" %}

```
import requests

response = requests.get(
    "https://ht-api.coinmarketman.com/api/external/candles",
    params={
        "coin": "BTC",
        "start": "2026-10-27T12:00:00Z",
        "end": "2026-10-27T12:00:05Z",
    },
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
)

candles = response.json()
```

{% endcode %}
{% endtab %}
{% endtabs %}

Response

> 200 Success: Returns 1-second candles for the requested market and range.

<details>

<summary>Response Example</summary>

{% code expandable="true" collapsedlinecount="10" %}

```
{
  "candles": [
    {
      "dateOpen": "2026-10-27T12:00:00Z",
      "dateClose": "2026-10-27T12:00:01Z",
      "open": 79895,
      "high": 79895,
      "low": 79894,
      "close": 79894,
      "volumeBase": 0.10187,
      "volumeQuote": 8138.80348,
      "tradeCount": 6,
      "synthetic": false
    },
    {
      "dateOpen": "2026-10-27T12:00:01Z",
      "dateClose": "2026-10-27T12:00:02Z",
      "open": 79894,
      "high": 79894,
      "low": 79894,
      "close": 79894,
      "volumeBase": 0.01263,
      "volumeQuote": 1009.06122,
      "tradeCount": 2,
      "synthetic": false
    },
    {
      "dateOpen": "2026-10-27T12:00:02Z",
      "dateClose": "2026-10-27T12:00:03Z",
      "open": 79894,
      "high": 79894,
      "low": 79894,
      "close": 79894,
      "volumeBase": 0.46177,
      "volumeQuote": 36892.65238,
      "tradeCount": 1,
      "synthetic": false
    },
    {
      "dateOpen": "2026-10-27T12:00:03Z",
      "dateClose": "2026-10-27T12:00:04Z",
      "open": 79894,
      "high": 79894,
      "low": 79894,
      "close": 79894,
      "volumeBase": 0,
      "volumeQuote": 0,
      "tradeCount": 0,
      "synthetic": true
    },
    {
      "dateOpen": "2026-10-27T12:00:04Z",
      "dateClose": "2026-10-27T12:00:05Z",
      "open": 79895,
      "high": 79895,
      "low": 79894,
      "close": 79894,
      "volumeBase": 0.73117,
      "volumeQuote": 58416.82615,
      "tradeCount": 16,
      "synthetic": false
    }
  ]
}
```

{% endcode %}

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coinmarketman.com/endpoints/positions-and-market-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
