Skip to content

What one fund's rebalances bought and sold, netted per subnet

GET
/v1/beta-baskets/{hotkey}/swaps/summary/

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).

  • None
hotkey
required
string

Validator hotkey SS58 address.

days
string
Allowed values: 1 30 7

Window in days. 400 on any other value. Default 7.

The window’s rebalances, netted per subnet.

Media typeapplication/json

/v1/beta-baskets/{hotkey}/swaps/summary/: the last days of a fund’s rebalances, netted per subnet.

object
hotkey
required
string
days
required

The window in days: 1, 7 or 30, 7 by default.

integer
swaps
required

Rebalances in the window.

integer
tao_moved
required

The TAO through the middle of every rebalance of the window: what counted against the daily budget.

number format: double
flows
required

One entry per subnet the window touched, largest net move first.

Array<object>

One subnet a fund’s rebalances touched over the window, netted.

object
netuid
required

0 is the fund’s TAO slot.

integer
name
required

Null when the subnet has no name.

string
nullable
net_tao
required

Τ 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.

number format: double
bought_tao
required

In TAO. The TAO through the middle of the rebalances that bought into this subnet.

number format: double
sold_tao
required

In TAO. The TAO through the middle of the rebalances that sold out of it.

number format: double
swaps
required

Rebalances with this subnet on either side.

integer
last
required

The newest rebalance of the window, null when there is none.

object
block
required
integer
timestamp
required

Block time; null when the block’s time is unknown.

string format: date-time
nullable
extrinsic_idx
required

With block, the extrinsic’s id {block}-{extrinsic_idx}.

integer
nullable
signer
required

The account that signed: the coldkey itself, or a proxy acting for it.

string
nullable
delegate_for
required

Proxied calls: whom it was submitted for. Null when the coldkey signed itself.

string
nullable
origin_netuid
required

The subnet whose holding was sold.

integer
origin_name
required

Null when the subnet has no name.

string
nullable
destination_netuid
required

The subnet whose holding was bought.

integer
destination_name
required

Null when the subnet has no name.

string
nullable
alpha_sold
required

Origin alpha sold (TAO when the origin is netuid 0).

number format: double
tao_mid
required

TAO between the two legs, what the fund’s daily turnover budget is charged.

number format: double
alpha_bought
required

Destination alpha credited after fees (TAO when the destination is netuid 0).

number format: double

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.

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": "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.

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

ExampleRESOURCENOTFOUND

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.

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.

QUERY_TIMEOUT: the query exceeded its budget. detail carries budget_ms, elapsed_ms, path and query.

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

ExampleQUERYTIMEOUT

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"
}
}