Skip to content

List dTao trades (swap events)

GET /api/dtao/trade/v1

Returns individual dTao swap events — the on-chain trades where a coldkey exchanged one asset for another through a subnet pool. Each row records the from/to asset names (e.g. TAO → an alpha symbol, or alpha↔alpha routed through TAO), the amounts swapped, the TAO and USD value of the trade, and the block + extrinsic that executed it.

Use this for trader activity feeds, per-coldkey swap history, and per-asset volume analytics. For aggregated per-subnet volume totals see /api/dtao/delegation_volume/v1; for aggregated TAO flow into/out of a subnet see /api/dtao/tao_flow/v1.

NameInTypeRequiredDescription
coldkeyquerystringFilter by the coldkey that executed the trade (SS58 or hex).
extrinsic_idquerystringFilter by exact extrinsic id (<block>-<index>).
from_namequerystringFilter by the source asset name (e.g. TAO, or the subnet’s alpha symbol).
to_namequerystringFilter by the destination asset name.
tao_value_minquerystringMinimum TAO value of the trade in rao (inclusive).
tao_value_maxquerystringMaximum TAO value of the trade in rao (inclusive).
usd_value_minquerystringMinimum USD value of the trade (inclusive).
usd_value_maxquerystringMaximum USD value of the trade (inclusive).
block_numberqueryintegerFilter to a single block height.
block_startqueryintegerStart of block range (inclusive).
block_endqueryintegerEnd of block range (inclusive).
timestamp_startqueryintegerStart of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive).
timestamp_endqueryintegerEnd of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive).
pagequeryinteger1-based page number.
limitqueryintegerPage size (max 200).
orderquerySort order, e.g. block_number_desc, tao_value_desc.

200 — Dtao trades retrieved successfully

Section titled “200 — Dtao trades retrieved successfully”

Media: application/json

Schema
{
"type": "object",
"required": [
"pagination",
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"block_number",
"timestamp",
"extrinsic_id",
"coldkey",
"from_name",
"to_name",
"from_amount",
"to_amount",
"tao_value",
"usd_value"
],
"properties": {
"block_number": {
"type": "integer",
"format": "int32"
},
"coldkey": {
"type": "object",
"required": [
"ss58",
"hex"
],
"properties": {
"hex": {
"type": "string",
"description": "The hex format of the hot key"
},
"ss58": {
"type": "string",
"description": "The SS58 format of the hot key"
}
}
},
"extrinsic_id": {
"type": "string"
},
"from_amount": {
"type": "string"
},
"from_name": {
"type": "string"
},
"tao_value": {
"type": "string"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"to_amount": {
"type": "string"
},
"to_name": {
"type": "string"
},
"usd_value": {
"type": "string"
}
}
}
},
"pagination": {
"type": "object",
"required": [
"current_page",
"per_page",
"total_items",
"total_pages"
],
"properties": {
"current_page": {
"type": "integer",
"format": "int32"
},
"next_page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"per_page": {
"type": "integer",
"format": "int32"
},
"prev_page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"total_items": {
"type": "integer",
"format": "int32"
},
"total_pages": {
"type": "integer",
"format": "int32"
}
}
}
}
}

Interactive request console coming soon. In the meantime you can use the OpenAPI spec with any client (Insomnia, Bruno, Scalar, curl).

All Taostats API requests require an Authorization header containing your API key. See Getting Started.