Skip to content

Stake-flow stats over a date range

GET
/trades/stats/

Network-wide stake flow summed from daily totals, all time by default: trade counts and TAO volume into subnets, out of subnets, and between subnets, overall and per subnet. Unlike on /trades/, date_to is inclusive here, which filters.date_to_inclusive restates.

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

  • None
date_from
string format: date

Inclusive lower bound, YYYY-MM-DD or an ISO instant. 400 otherwise.

date_to
string format: date

Inclusive upper bound, YYYY-MM-DD or an ISO instant. 400 otherwise.

The flow summed over the range, with the filters applied.

Media typeapplication/json

Daily stake-flow rows summed over [date_from, date_to], all time by default.

object
tao_to_subnets
required

Stakes that brought TAO from a free balance into a subnet, the legs of swaps, moves and transfers left out.

object
trades
required

Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.

integer
tao_volume_rao
required

In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.

integer
tao_volume
required

In TAO. The same value as tao_volume_rao.

number format: double
subnets_to_tao
required

Unstakes that returned TAO to a free balance, the legs of swaps, moves and transfers left out.

object
trades
required

Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.

integer
tao_volume_rao
required

In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.

integer
tao_volume
required

In TAO. The same value as tao_volume_rao.

number format: double
cross_subnet
required

Swaps, moves and transfers of stake, one each, those within one subnet included: alpha changing place, no TAO entering or leaving.

object
trades
required

Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.

integer
tao_volume_rao
required

In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.

integer
tao_volume
required

In TAO. The same value as tao_volume_rao.

number format: double
totals
required

The three blocks added up, except the volume, which leaves cross_subnet out.

object
trades
required

Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.

integer
tao_volume_rao
required

In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.

integer
tao_volume
required

In TAO. The same value as tao_volume_rao.

number format: double
net_tao_flow
required

tao_to_subnets minus subnets_to_tao.

object
tao_volume_rao
required

TAO into subnets minus TAO out; negative on a net outflow.

integer
tao_volume
required

In TAO. The same value as tao_volume_rao.

number format: double
by_subnet
required

Keyed by netuid, as a string, ascending. Signed stake legs only (cross-subnet legs kept, same-subnet rebalances removed): unlike the candle volume, it leaves out the fund’s claim sells, rebalances and share purchases, which emit no stake event.

object
key
additional properties
object
in_count
required

Stake legs into this subnet, the buy legs of cross-subnet swaps, moves and transfers included.

integer
in_rao
required

In rao. The TAO those legs put in.

integer
in_tao
required

In TAO. The same value as in_rao.

number format: double
out_count
required

Stake legs out of this subnet, the sell legs of cross-subnet swaps, moves and transfers included.

integer
out_rao
required

In rao. The TAO those legs took out.

integer
out_tao
required

In TAO. The same value as out_rao.

number format: double
volume_change_7d_pct
required

Week-over-week change of the most recent day in range.

number format: double
nullable
filters
required

The date range applied, echoed back.

object
date_from
required

The first day summed, as sent; null for no lower bound.

string format: date
nullable
date_to
required

The last day summed, INCLUSIVE, as sent; null for no upper bound.

string format: date
nullable
date_to_inclusive
required

Always true here; /trades/ reads the same name as exclusive.

boolean

Example generated

{
"tao_to_subnets": {
"trades": 1,
"tao_volume_rao": 1,
"tao_volume": 1
},
"subnets_to_tao": {
"trades": 1,
"tao_volume_rao": 1,
"tao_volume": 1
},
"cross_subnet": {
"trades": 1,
"tao_volume_rao": 1,
"tao_volume": 1
},
"totals": {
"trades": 1,
"tao_volume_rao": 1,
"tao_volume": 1
},
"net_tao_flow": {
"tao_volume_rao": 1,
"tao_volume": 1
},
"by_subnet": {
"additionalProperty": {
"in_count": 1,
"in_rao": 1,
"in_tao": 1,
"out_count": 1,
"out_rao": 1,
"out_tao": 1
}
},
"volume_change_7d_pct": 1,
"filters": {
"date_from": "2026-04-15",
"date_to": "2026-04-15",
"date_to_inclusive": true
}
}

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": "date_from must be YYYY-MM-DD",
"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.