What one fund's rebalances bought and sold, netted per subnet
The fund’s rebalances over the last 1, 7 or 30 days, netted per subnet: the TAO bought into each minus the TAO sold out of it, every leg valued at the TAO in the middle of its swap. Netuid 0 is the fund’s TAO slot.
Rate limit: 300 requests per minute per IP (scope explore).
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Validator hotkey SS58 address.
Query Parameters
Section titled “Query Parameters”Window in days. 400 on any other value. Default 7.
Responses
Section titled “Responses”The window’s rebalances, netted per subnet.
/v1/beta-baskets/{hotkey}/swaps/summary/: the last days of a fund’s rebalances, netted per subnet.
object
The window in days: 1, 7 or 30, 7 by default.
Rebalances in the window.
The TAO through the middle of every rebalance of the window: what counted against the daily budget.
One entry per subnet the window touched, largest net move first.
One subnet a fund’s rebalances touched over the window, netted.
object
0 is the fund’s TAO slot.
Null when the subnet has no name.
Τ bought into this subnet minus τ sold out of it, each leg at the TAO through the middle of its swap. Positive: the validator added to it.
In TAO. The TAO through the middle of the rebalances that bought into this subnet.
In TAO. The TAO through the middle of the rebalances that sold out of it.
Rebalances with this subnet on either side.
The newest rebalance of the window, null when there is none.
object
Block time; null when the block’s time is unknown.
With block, the extrinsic’s id {block}-{extrinsic_idx}.
The account that signed: the coldkey itself, or a proxy acting for it.
Proxied calls: whom it was submitted for. Null when the coldkey signed itself.
The subnet whose holding was sold.
Null when the subnet has no name.
The subnet whose holding was bought.
Null when the subnet has no name.
Origin alpha sold (TAO when the origin is netuid 0).
TAO between the two legs, what the fund’s daily turnover budget is charged.
Destination alpha credited after fees (TAO when the destination is netuid 0).
Example generated
{ "hotkey": "example", "days": 1, "swaps": 1, "tao_moved": 1, "flows": [ { "netuid": 1, "name": "example", "net_tao": 1, "bought_tao": 1, "sold_tao": 1, "swaps": 1 } ], "last": { "block": 1, "timestamp": "2026-04-15T12:00:00Z", "extrinsic_idx": 1, "signer": "example", "delegate_for": "example", "origin_netuid": 1, "origin_name": "example", "destination_netuid": 1, "destination_name": "example", "alpha_sold": 1, "tao_mid": 1, "alpha_bought": 1 }}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": "days must be one of: 1, 7, 30", "detail": null}RESOURCE_NOT_FOUND. Carries Cache-Control: public, max-age=15, short because a new block or extrinsic is indexed up to a minute late.
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
RESOURCE_NOT_FOUND
{ "error": true, "code": "RESOURCE_NOT_FOUND", "message": "Not found", "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" }}