Skip to content

One coldkey's trading, raw or bucketed

GET
/trades/summary/

One coldkey’s buys and sells over a window, seven days by default: summed per UTC day or hour and per subnet, with the coldkey’s purchases of beta-basket shares beside them, or with resolution=raw one row per trade, the newest 5,000 served oldest first and flagged truncated when cut. A swap or move between subnets counts as a sell on its origin and a buy on its destination.

Rate limit: 300 requests per minute per IP (scope explore).

  • None
coldkey
required
string

Coldkey SS58 address. 400 when missing.

date_from
string format: date

Inclusive lower bound, YYYY-MM-DD or an ISO instant. Defaults to seven days ago. 400 on a bad format.

date_to
string format: date

EXCLUSIVE upper bound: the window stops at this day’s 00:00 UTC, so today needs tomorrow’s date. Defaults to now. 400 on a bad format.

hotkey
string

Filter to one hotkey.

netuid
integer

Filter to one subnet. 0 is root, a real subnet. 400 when not an integer.

resolution
string
Allowed values: day hour raw

raw serves one row per leg; day/hour aggregate. 400 on any other value. Default day.

One row per trade with resolution=raw, else one row per bucket and subnet.

Media typeapplication/json
One of:

?resolution=raw: one row per leg, capped at 5,000.

object
resolution
required

Always raw in this shape.

  • raw - raw
string
Allowed values: raw
results
required

Oldest first. When truncated, only the newest 5,000 legs of the window were read.

Array<object>
object
timestamp
required

Block time.

string format: date-time
netuid
required

The subnet whose pool the leg traded with.

integer
side
required

Direction against TAO: buy puts TAO into a pool, sell takes it out.

  • buy - buy
  • sell - sell
string
Allowed values: buy sell
tao_rao
required

In rao. The TAO paid into the pool on a buy, fee included, or received from it on a sell.

integer
alpha
required

In alpha rao. The alpha received on a buy; on a sell, the alpha swapped net of the pool fee, so the seller parted with slightly more.

integer
price
required

In TAO per alpha. tao_rao over alpha, rounded to 8 decimals; it reads about the pool fee high on a sell. Null when alpha is 0.

number format: double
nullable
hotkey
required

The hotkey the alpha landed on, for a buy, or left, for a sell.

string
nullable
operation
required

add or remove on a plain leg; swap, move or transfer on a leg of a cross-subnet one.

  • add - add
  • remove - remove
  • move - move
  • swap - swap
  • transfer - transfer
string
Allowed values: add remove move swap transfer
counterparty_netuid
required

The other pool of a move, swap or transfer, else null.

integer
nullable
block
required
integer
extrinsic_idx
required

Index of the extrinsic in its block, so {block}-{extrinsic_idx} names it on /extrinsics/{extrinsic_id}/.

integer
nullable
success
required

Whether the extrinsic carrying the leg succeeded.

boolean
nullable
truncated
required

True when the cap cut the answer short. Narrow the window.

boolean
filters
required

The query, echoed back with its defaults filled in.

object
coldkey
required
string
date_from
required

Start of the window: 00:00 UTC on the requested day, or seven days before the request.

string format: date-time
date_to
required

EXCLUSIVE end of the window: 00:00 UTC on the requested day, or the time of the request.

string format: date-time
resolution
required

The resolution served, day when the request named none.

  • day - day
  • hour - hour
  • raw - raw
string
Allowed values: day hour raw
netuid
required

The netuid filter; null when none was sent.

integer
nullable
hotkey
required

The hotkey filter; null when none was sent.

string
nullable

Examples

ExampleTradeSummary

One coldkey's day: a sell and a buy

{
"resolution": "day",
"results": [
{
"bucket": "2026-10-23",
"netuid": 44,
"buy_count": 0,
"sell_count": 1,
"buy_tao_rao": 0,
"sell_tao_rao": 4997108289,
"buy_alpha": 0,
"sell_alpha": 145900125312
},
{
"bucket": "2026-10-23",
"netuid": 80,
"buy_count": 1,
"sell_count": 0,
"buy_tao_rao": 7200000000,
"sell_tao_rao": 0,
"buy_alpha": 337025527956,
"sell_alpha": 0
}
],
"basket_buys": [],
"truncated": false,
"filters": {
"coldkey": "5HYRPKzYv5eJFUsUjHYbvMLXhcX3FSDFjnEoNureLVXdSb1d",
"date_from": "2026-10-16T18:05:24.927329+00:00",
"date_to": "2026-10-23T18:05:24.927329+00:00",
"resolution": "day",
"netuid": null,
"hotkey": null
}
}

A parameter failed its check, which message names. code is usually VALIDATION_ERROR.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "coldkey is required",
"detail": null
}

Rate limit exceeded (300/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.

QUERY_TIMEOUT: the query exceeded its budget. detail carries budget_ms, elapsed_ms, path and query.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleQUERYTIMEOUT

QUERY_TIMEOUT

{
"error": true,
"code": "QUERY_TIMEOUT",
"message": "query exceeded the 12000 ms budget; retry, or narrow the requested range",
"detail": {
"budget_ms": 12000,
"elapsed_ms": 12004,
"path": "/trades/summary/",
"query": "coldkey=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY&resolution=day"
}
}