# Per-user OTC Statistics

Returns lifetime OTC statistics for a coldkey: total listings/offers created, trades as buyer/seller, and cumulative TAO + alpha volume.

_Source: https://beta.taostats.io/docs/api-reference/otc/get-otc-user-stats_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/otc/user/stats/v2
```

Requires an API key in the `Authorization` header.

Returns lifetime OTC statistics for a coldkey: total listings/offers created, trades as buyer/seller, and cumulative TAO + alpha volume. Filter by `netuid` for per-subnet breakdown. Useful for OTC desk leaderboards and per-trader reputation views.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

Get OTC trading stats for a wallet

```text
https://api.taostats.io/api/otc/user/stats/v2?account=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n
```

List the top OTC traders by TAO volume

```text
https://api.taostats.io/api/otc/user/stats/v2?order=volume_tao_desc&limit=20
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/otc/user/stats/v2?account=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/otc/user/stats/v2?account=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/otc/user/stats/v2?account=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `account` | query | `string` |  | Coldkey (SS58) to query stats for. Required for meaningful results. |
| `netuid` | query | `integer (int32)` |  | Subnet id. Omit to aggregate across all subnets. |
| `page` | query | `integer (int32)` |  | 1-based page number. |
| `limit` | query | `integer (int32)` |  | Page size (max 200). |
| `order` | query | `string` |  | Sort order, e.g. `total_volume_tao_desc`. One of `last_activity_asc`, `last_activity_desc`, `volume_tao_asc`, `volume_tao_desc`, `volume_alpha_asc`, `volume_alpha_desc`, `total_trades_asc`, `total_trades_desc`. |

## Responses

### `200` — User statistics retrieved successfully

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array` | Yes |  |
| `data[].account` | `object` | Yes |  |
| `data[].account.hex` | `string` | Yes | The hex format of the hot key |
| `data[].account.ss58` | `string` | Yes | The SS58 format of the hot key |
| `data[].last_activity_block` | `integer (int32)` | Yes |  |
| `data[].last_activity_timestamp` | `string (date-time)` | Yes |  |
| `data[].netuid` | `integer (int32)` | Yes |  |
| `data[].total_listings_created` | `integer (int32)` | Yes |  |
| `data[].total_offers_created` | `integer (int32)` | Yes |  |
| `data[].total_trades_as_buyer` | `integer (int32)` | Yes |  |
| `data[].total_trades_as_seller` | `integer (int32)` | Yes |  |
| `data[].total_volume_alpha` | `string` | Yes |  |
| `data[].total_volume_tao` | `string` | Yes |  |
| `pagination` | `object` | Yes |  |
| `pagination.current_page` | `integer (int32)` | Yes |  |
| `pagination.next_page` | `integer (int32), nullable` |  |  |
| `pagination.per_page` | `integer (int32)` | Yes |  |
| `pagination.prev_page` | `integer (int32), nullable` |  |  |
| `pagination.total_items` | `integer (int32)` | Yes |  |
| `pagination.total_pages` | `integer (int32)` | Yes |  |

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
