Rolling stake-flow window
The stake-flow splits of /trades/stats/ over the last hours complete hours, overall and per subnet, with the change in volume and in trade count, in percent, against the window of equal length before it.
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”Window length, 1 to 168, default 24. Clamped into that range; anything unreadable falls back to 24.
Responses
Section titled “Responses”The flow over the window, with its change against the window before.
The last window_hours complete hours, against the window of equal length before them.
The open hour is left out, so both windows are whole.
object
Stakes that brought TAO from a free balance into a subnet, the legs of swaps, moves and transfers left out.
object
Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.
In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.
In TAO. The same value as tao_volume_rao.
Unstakes that returned TAO to a free balance, the legs of swaps, moves and transfers left out.
object
Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.
In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.
In TAO. The same value as tao_volume_rao.
Swaps, moves and transfers of stake, one each, those within one subnet included: alpha changing place, no TAO entering or leaving.
object
Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.
In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.
In TAO. The same value as tao_volume_rao.
The three blocks added up, except the volume, which leaves cross_subnet out.
object
Operations counted: stake legs, or on cross_subnet the swaps, moves and transfers themselves.
In rao. The TAO they moved; on totals, into and out of subnets only, cross_subnet left out.
In TAO. The same value as tao_volume_rao.
tao_to_subnets minus subnets_to_tao.
object
TAO into subnets minus TAO out; negative on a net outflow.
In TAO. The same value as tao_volume_rao.
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
object
Stake legs into this subnet, the buy legs of cross-subnet swaps, moves and transfers included.
In rao. The TAO those legs put in.
In TAO. The same value as in_rao.
Stake legs out of this subnet, the sell legs of cross-subnet swaps, moves and transfers included.
In rao. The TAO those legs took out.
In TAO. The same value as out_rao.
The window’s length: hours clamped to 1 to 168, 24 when absent or unreadable.
Start of the window, the first complete hour it covers.
Against the window of the same length just before this one.
object
Null when the previous window had no volume.
Percent, signed: the change of totals.trades. Null when the previous window had no trade.
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 } }, "window_hours": 1, "since": "2026-04-15T12:00:00Z", "change_pct": { "volume": 1, "trades": 1 }}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.