One coldkey's trading, raw or bucketed
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).
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Coldkey SS58 address. 400 when missing.
Inclusive lower bound, YYYY-MM-DD or an ISO instant. Defaults to seven days ago. 400 on a bad format.
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.
Filter to one hotkey.
Filter to one subnet. 0 is root, a real subnet. 400 when not an integer.
raw serves one row per leg; day/hour aggregate. 400 on any other value. Default day.
Responses
Section titled “Responses”One row per trade with resolution=raw, else one row per bucket and subnet.
?resolution=raw: one row per leg, capped at 5,000.
object
Always raw in this shape.
raw- raw
Oldest first. When truncated, only the newest 5,000 legs of the window were read.
object
Block time.
The subnet whose pool the leg traded with.
Direction against TAO: buy puts TAO into a pool, sell takes it out.
buy- buysell- sell
In rao. The TAO paid into the pool on a buy, fee included, or received from it on a sell.
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.
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.
The hotkey the alpha landed on, for a buy, or left, for a sell.
add or remove on a plain leg; swap, move or transfer on a leg of a cross-subnet one.
add- addremove- removemove- moveswap- swaptransfer- transfer
The other pool of a move, swap or transfer, else null.
Index of the extrinsic in its block, so {block}-{extrinsic_idx} names it on /extrinsics/{extrinsic_id}/.
Whether the extrinsic carrying the leg succeeded.
True when the cap cut the answer short. Narrow the window.
The query, echoed back with its defaults filled in.
object
Start of the window: 00:00 UTC on the requested day, or seven days before the request.
EXCLUSIVE end of the window: 00:00 UTC on the requested day, or the time of the request.
The resolution served, day when the request named none.
day- dayhour- hourraw- raw
The netuid filter; null when none was sent.
The hotkey filter; null when none was sent.
?resolution=day|hour: summed per bucket and netuid, folding at most 20,000 legs.
object
The bucket width: day, the default, or hour.
day- dayhour- hour
Oldest bucket first, then by netuid.
The coldkey’s buys and sells on one subnet within one bucket, summed.
object
YYYY-MM-DD at resolution=day, YYYY-MM-DDTHH:00:00Z at resolution=hour.
The subnet whose pool the legs traded with.
Buy legs summed into this row.
Sell legs summed into this row.
In rao. The TAO those buys paid into the pool, fee included.
In rao. The TAO those sells received from the pool.
In alpha rao. The alpha those buys received.
In alpha rao. The alpha those sells swapped, net of the pool fee.
Purchases of validator fund shares (stake_into_basket), per bucket. Empty under a netuid filter.
object
Same format as a results bucket.
Fund share purchases in this bucket.
In rao. The TAO paid for those shares, entry cost included.
True when the window held over 20,000 legs or share purchases: only the newest were summed, so the oldest buckets read low.
The query, echoed back with its defaults filled in.
object
Start of the window: 00:00 UTC on the requested day, or seven days before the request.
EXCLUSIVE end of the window: 00:00 UTC on the requested day, or the time of the request.
The resolution served, day when the request named none.
day- dayhour- hourraw- raw
The netuid filter; null when none was sent.
The hotkey filter; null when none was sent.
Examples
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.
The error envelope every 4xx and 5xx response carries. The introduction lists the code values.
object
Always true. Lets a client branch without reading the status code.
Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.
One human-readable sentence.
Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.
Examples
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.
The error envelope every 4xx and 5xx response carries. The introduction lists the code values.
object
Always true. Lets a client branch without reading the status code.
Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.
One human-readable sentence.
Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.
Examples
RATE_LIMITED
{ "error": true, "code": "RATE_LIMITED", "message": "Request was throttled", "detail": { "retry_after": 12 }}Headers
Section titled “Headers”Seconds before the next request is accepted.
QUERY_TIMEOUT: the query exceeded its budget. detail carries budget_ms, elapsed_ms, path and query.
The error envelope every 4xx and 5xx response carries. The introduction lists the code values.
object
Always true. Lets a client branch without reading the status code.
Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.
One human-readable sentence.
Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.
Examples
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" }}