Skip to content

One fund's rebalances, newest first

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

Each rebalance of the fund, newest first: the holding sold, the TAO that passed through the middle, the holding bought. Pages by page or, at any depth, by the after cursor; netuid keeps the rebalances of one subnet.

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

  • None
hotkey
required
string

Validator hotkey SS58 address.

after
string

The next_cursor of a previous page: reads the page after it at any depth, page ignored. 400 when malformed.

netuid
integer

Only the rebalances with this subnet on either side, 0 being the fund’s TAO slot; total_count and the cursor follow the filter. 400 unless an integer from 0 to 65535.

page
integer

1-based page number. Defaults to 1; an unparseable value falls back to it.

page_size
integer

Rows per page. Default 50, clamped to [1, 200].

One page of rebalances, newest first.

Media typeapplication/json

/v1/beta-baskets/{hotkey}/swaps/: newest first. pagination.next_cursor reads the next page at any depth.

object
results
required

This page’s rebalances, newest first.

Array<object>

One rebalance. Netuid 0 is the fund’s TAO cash slot: its amounts are TAO.

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
pagination
required

Where this page sits in the list, whether another follows, and the cursor that reads it.

object
page
required

The page served, counting from 1.

integer
page_size
required

Rows per page, the requested size within the route’s bounds.

integer
total_count
required

Exact number of matching rows, whether or not the pages can reach them all.

integer
reachable_count
required

Rows the pages can reach: total_pages times page_size, capped at total_count. Below total_count only when the set runs deeper than the offset cap; read the rest through the cursor where the route offers one.

integer
total_pages
required

Clamped to the deepest page the API will serve (offset <= 10000).

integer
has_next
required

Whether a next page exists within the deepest page served.

boolean
has_previous
required

True past page 1.

boolean
next_cursor

Where the list offers a cursor form (/v2/subnets/{netuid}/?delegators=true, /v2/validators/{hotkey}/): the after= that reads the page after this one, null on the last page, and valid only under the sort, direction and grouping that issued it (a 400 otherwise). Absent on lists with no cursor form.

string
nullable

Example generated

{
"results": [
{
"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
}
],
"pagination": {
"page": 1,
"page_size": 1,
"total_count": 1,
"reachable_count": 1,
"total_pages": 1,
"has_next": true,
"has_previous": true,
"next_cursor": "example"
}
}

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": "netuid must be an integer from 0 to 65535",
"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"
}
}