Skip to content

Balance history for one coldkey, or a summed basket of them

GET
/portfolio-balance/

One coldkey’s balance, one row per UTC day, oldest first: free TAO, root stake and alpha valued in TAO, as integers in rao, with their USD values. Alpha is valued at sale through its pool, and again at the chain’s price in the *_spot_* fields, null on rows recorded before that measurement. Days before dTAO (2025-02-13) start on the coldkey’s first funded day of Finney and hold free TAO and the stake of that era in staked_tao, no alpha and no subnet. Days of 2025-07-08 to 2026-01-04 also count the coldkey’s user liquidity positions (liquidity_*), 0 on every other row. Beside the series come its rank, its value change over 24 hours, 7, 30 and 90 days, and the subnets it held. Dates are inclusive at both ends, the last 365 days by default. subnets adds a per-subnet breakdown to each day, granularity=hourly serves hourly rows over at most 90 days, and accounts sums up to 50 coldkeys into one series.

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

Stable: the operation and its fields leave only after 180 days of notice.

  • None
account
string

Coldkey SS58 address. Required unless accounts is given.

accounts
string

Up to 50 comma-separated coldkeys, summed into one series. Wins over account and blanks the per-coldkey blocks.

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.

days
integer

Window length, default 365, capped at 730. Ignored when a date bound is given. 400 below 1 or on a non-integer.

granularity
string
Allowed values: daily hourly

hourly is limited to a 90-day span and drops the subnet breakdown. Default daily.

subnets
string

all, or up to 256 comma-separated netuids, to add the per-subnet breakdown. 400 together with accounts.

The series, with the coldkey’s rank, value changes and held subnets.

Media typeapplication/json

One coldkey’s balance history. A combined request (accounts=) adds the accounts echo, sets rank, value_change, value_change_spot, subnet_value_change and coldkey_swap to null and empties held_netuids: those answer for one coldkey only.

object
account_known
required

Whether the address was ever seen on chain; on a combined request, whether any of them was.

boolean
accounts

Combined requests only: the coldkeys the series sums.

Array<string>
granularity
required

daily or hourly.

string
results
required

The series, oldest first, leading empty days dropped. Hourly rows carry snapshot_at instead of date, and no staked_alpha.

Array<object>

One point of the series: a UTC day, keyed date, or with granularity=hourly a snapshot, keyed snapshot_at.

object
date

Daily rows only. The UTC day: its closing balance, or the latest snapshot for today.

string format: date
snapshot_at

Hourly rows only. When the snapshot was taken: the time of the block it was read at.

string format: date-time
free
required

In rao. Free TAO, not staked.

integer
reserved
required

In rao. The balance the chain holds reserved for a deposit, such as a proxy’s or an identity’s: the coldkey’s, though locked.

integer
staked_tao
required

In rao. TAO staked on root.

integer
staked_alpha

Daily rows only. In alpha rao. The alpha of every subnet but root added up: a count across pools of different prices, not a value.

integer
staked_alpha_in_tao
required

In rao. What that alpha would fetch, each subnet’s holding sold through its pool, slippage included.

integer
root_rewards
required

In rao. What the coldkey’s shares in the root validators’ funds would pay if claimed: root staking rewards not claimed yet, plus any shares bought. Zero before the chain introduced these funds.

integer
free_in_usd
required

In USD, as a decimal string. free at the day’s last TAO price, or the hour’s on an hourly row.

string
reserved_in_usd
required

In USD, as a decimal string. reserved at the row’s TAO price.

string
staked_tao_in_usd
required

In USD, as a decimal string. staked_tao at the row’s TAO price.

string
staked_alpha_in_usd
required

In USD, as a decimal string. staked_alpha_in_tao at the row’s TAO price.

string
root_rewards_in_usd
required

In USD, as a decimal string. root_rewards at the row’s TAO price.

string
total_tao
required

In rao. The sum of free, reserved, staked_tao, staked_alpha_in_tao, root_rewards, liquidity_tao and liquidity_alpha_in_tao.

integer
total_usd
required

In USD, as a number, unlike the seven decimal strings it adds up.

number format: double
staked_alpha_spot_in_tao
required

In rao. The same alpha at each pool’s spot price, no slippage. Zero without alpha, null on a row recorded before spot was measured.

integer
nullable
staked_alpha_spot_in_usd
required

In USD, as a decimal string. staked_alpha_spot_in_tao at the row’s TAO price.

string
nullable
total_spot_tao
required

In rao. total_tao with the alpha at spot: staked_alpha_spot_in_tao and liquidity_alpha_spot_in_tao in place of staked_alpha_in_tao and liquidity_alpha_in_tao, null where either is.

integer
nullable
total_spot_usd
required

In USD, as a number. total_usd with the alpha at spot.

number format: double
nullable
liquidity_tao
required

In rao. The TAO of the coldkey’s user liquidity positions, fees owed included: what removing them would have paid at the row’s block. Only daily rows of 2025-07-08 to 2026-01-04 hold any, when the swap ran concentrated liquidity; 0 on every other row.

integer
liquidity_alpha_in_tao
required

In rao. Their alpha valued at sale: the TAO it would add if sold together with the alpha staked on the same subnet.

integer
liquidity_alpha_spot_in_tao
required

In rao. Their alpha at each pool’s spot price. Zero without alpha, null where a pool’s price put it past what the row stores.

integer
nullable
liquidity_tao_in_usd
required

In USD, as a decimal string. liquidity_tao at the row’s TAO price.

string
liquidity_alpha_in_usd
required

In USD, as a decimal string. liquidity_alpha_in_tao at the row’s TAO price.

string
liquidity_alpha_spot_in_usd
required

In USD, as a decimal string. liquidity_alpha_spot_in_tao at the row’s TAO price.

string
nullable
subnets

Daily rows with subnets only: the holding per subnet, by netuid.

Array<object>
object
netuid
required
integer
alpha_amount
required

In alpha, as a decimal string. The alpha held on this subnet that day.

string
alpha_in_tao
required

In TAO, as a decimal string. What that alpha would fetch sold through the pool, slippage included.

string
alpha_in_usd
required

In USD, as a decimal string. alpha_in_tao at the day’s TAO price.

string
alpha_spot_in_tao
required

In TAO, as a decimal string. That alpha at the pool’s spot price. Null on a day recorded before spot was measured.

string
nullable
alpha_spot_in_usd
required

In USD, as a decimal string. alpha_spot_in_tao at the day’s TAO price.

string
nullable
held_netuids
required

Subnets other than root held on any day of the requested range, sold ones included, ascending. Empty on a combined request.

Array<integer>
rank
required

The coldkey’s place in the latest ranking. Null on a combined request, or when the latest ranking left it out.

object
rank
required

Position by total value, the total_tao of the ranked snapshot’s row, among the coldkeys of that snapshot; 1 is the largest.

integer
nullable
rank_alpha
required

Position by staked_alpha_in_tao; 1 is the largest.

integer
nullable
total_accounts
required

Coldkeys in the ranked snapshot, empty ones included.

integer
as_of
required

The day of the balance snapshot the ranks come from.

string format: date
value_change
required

Null on a combined request, or before the coldkey’s first daily snapshot.

object
as_of
required

The day of the latest daily snapshot.

string format: date
24h
required

Against the snapshot about 24 hours earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
7d
required

Against the snapshot 7 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
30d
required

Against the snapshot 30 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
90d
required

Against the snapshot 90 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
value_change_spot
required

value_change over the totals at spot, on the same windows, and null when it is. A window is null where either end’s total_spot_tao is.

object
as_of
required

The day of the latest daily snapshot.

string format: date
24h
required

Against the snapshot about 24 hours earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
7d
required

Against the snapshot 7 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
30d
required

Against the snapshot 30 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
90d
required

Against the snapshot 90 days earlier, hourly when one exists, else daily.

object
tao_abs
required

In rao. The signed change of total value over the window.

integer
tao_pct
required

Percent, signed. Null when the start value is zero or under 1 % of the end value.

number format: double
nullable
usd_abs
required

In USD, as a signed decimal string. The change of total USD value.

string
usd_pct
required

Percent, signed. Null under the same rule as tao_pct, on USD values.

number format: double
nullable
subnet_value_change
required

Null on a combined request, or when no subnet has a baseline in any window.

object
as_of
required

The anchor day, the same as value_change.as_of.

string format: date
baselines
required

Keyed by netuid, as a string.

object
key
additional properties

Three windows: there is no 90-day baseline per subnet. A window is null when no snapshot exists that day or its alpha is under 1 % of the anchor day’s.

object
24h

At the end of the day before as_of.

object
alpha_amount
required

In alpha, as a decimal string. The alpha held on the baseline day.

string
alpha_in_tao
required

In TAO, as a decimal string. Its sale value through the pool that day, slippage included.

string
alpha_in_usd
required

In USD, as a decimal string. Its value at that day’s TAO price.

string
alpha_spot_in_tao
required

In TAO, as a decimal string. Its value at the pool’s spot price that day. Null on a day recorded before spot was measured.

string
nullable
alpha_spot_in_usd
required

In USD, as a decimal string. alpha_spot_in_tao at that day’s TAO price.

string
nullable
7d

At the end of the day 7 days before as_of.

object
alpha_amount
required

In alpha, as a decimal string. The alpha held on the baseline day.

string
alpha_in_tao
required

In TAO, as a decimal string. Its sale value through the pool that day, slippage included.

string
alpha_in_usd
required

In USD, as a decimal string. Its value at that day’s TAO price.

string
alpha_spot_in_tao
required

In TAO, as a decimal string. Its value at the pool’s spot price that day. Null on a day recorded before spot was measured.

string
nullable
alpha_spot_in_usd
required

In USD, as a decimal string. alpha_spot_in_tao at that day’s TAO price.

string
nullable
30d

At the end of the day 30 days before as_of.

object
alpha_amount
required

In alpha, as a decimal string. The alpha held on the baseline day.

string
alpha_in_tao
required

In TAO, as a decimal string. Its sale value through the pool that day, slippage included.

string
alpha_in_usd
required

In USD, as a decimal string. Its value at that day’s TAO price.

string
alpha_spot_in_tao
required

In TAO, as a decimal string. Its value at the pool’s spot price that day. Null on a day recorded before spot was measured.

string
nullable
alpha_spot_in_usd
required

In USD, as a decimal string. alpha_spot_in_tao at that day’s TAO price.

string
nullable
coldkey_swap
required

Set when another coldkey was swapped into this one on chain. The balances from before the swap stay under the previous address.

object
previous
required

The latest coldkey swapped into this one.

string
swapped_at
required

When that swap happened.

string format: date-time
nullable
swapped_at_block
required

The block of that swap.

integer
nullable

Examples

ExamplePortfolioBalance

One coldkey, two days

{
"account_known": true,
"coldkey_swap": null,
"rank": {
"rank": 1121,
"rank_alpha": 1190,
"total_accounts": 166367,
"as_of": "2026-10-22"
},
"value_change": {
"as_of": "2026-10-23",
"24h": {
"tao_abs": -429011500,
"tao_pct": -0.04,
"usd_abs": "-2093.04405711",
"usd_pct": -0.84
},
"7d": {
"tao_abs": 5494676648,
"tao_pct": 0.57,
"usd_abs": "-14881.46108116",
"usd_pct": -5.66
},
"30d": {
"tao_abs": 13524300880,
"tao_pct": 1.43,
"usd_abs": "-23686.02901280",
"usd_pct": -8.72
},
"90d": {
"tao_abs": 80211387061,
"tao_pct": 9.1,
"usd_abs": "79079.74392653",
"usd_pct": 46.83
}
},
"value_change_spot": {
"as_of": "2026-10-23",
"24h": null,
"7d": null,
"30d": null,
"90d": null
},
"subnet_value_change": {
"as_of": "2026-10-23",
"baselines": {
"44": {
"24h": {
"alpha_amount": "5886.311390568",
"alpha_in_tao": "201.137240182",
"alpha_in_usd": "51700.31621638",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
},
"7d": {
"alpha_amount": "5858.110073961",
"alpha_in_tao": "198.055561752",
"alpha_in_usd": "54423.68781383",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
},
"30d": {
"alpha_amount": "5778.1209159",
"alpha_in_tao": "199.266233387",
"alpha_in_usd": "57069.84924204",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
}
},
"64": {
"24h": {
"alpha_amount": "740.746526435",
"alpha_in_tao": "50.259907885",
"alpha_in_usd": "12918.80672276",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
},
"7d": {
"alpha_amount": "736.931775277",
"alpha_in_tao": "49.846904316",
"alpha_in_usd": "13697.43083699",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
},
"30d": {
"alpha_amount": "722.540790524",
"alpha_in_tao": "49.094894491",
"alpha_in_usd": "14060.77778222",
"alpha_spot_in_tao": null,
"alpha_spot_in_usd": null
}
}
}
},
"held_netuids": [
44,
64
],
"granularity": "daily",
"results": [
{
"date": "2026-10-22",
"free": 46791890,
"staked_tao": 701028893422,
"staked_alpha": 6627057917003,
"staked_alpha_in_tao": 251397148067,
"root_rewards": 7959607723,
"free_in_usd": "12.02738741",
"staked_tao_in_usd": "180192.46676519",
"staked_alpha_in_usd": "64619.12293914",
"root_rewards_in_usd": "2045.93756912",
"total_tao": 960532441102,
"total_usd": 246895.25866087,
"staked_alpha_spot_in_tao": null,
"staked_alpha_spot_in_usd": null,
"total_spot_tao": null,
"total_spot_usd": null,
"reserved": 100000000,
"reserved_in_usd": "25.70400001",
"liquidity_tao": 0,
"liquidity_alpha_in_tao": 0,
"liquidity_alpha_spot_in_tao": 0,
"liquidity_tao_in_usd": "0.00000000",
"liquidity_alpha_in_usd": "0.00000000",
"liquidity_alpha_spot_in_usd": "0.00000000"
},
{
"date": "2026-10-23",
"free": 46791890,
"staked_tao": 701028893422,
"staked_alpha": 6630267214571,
"staked_alpha_in_tao": 252842318888,
"root_rewards": 8015286719,
"free_in_usd": "12.06060965",
"staked_tao_in_usd": "180690.19727952",
"staked_alpha_in_usd": "65170.10769338",
"root_rewards_in_usd": "2065.94015182",
"total_tao": 962033290919,
"total_usd": 247964.08073438,
"staked_alpha_spot_in_tao": null,
"staked_alpha_spot_in_usd": null,
"total_spot_tao": null,
"total_spot_usd": null,
"reserved": 100000000,
"reserved_in_usd": "25.77500001",
"liquidity_tao": 0,
"liquidity_alpha_in_tao": 0,
"liquidity_alpha_spot_in_tao": 0,
"liquidity_tao_in_usd": "0.00000000",
"liquidity_alpha_in_usd": "0.00000000",
"liquidity_alpha_spot_in_usd": "0.00000000"
}
]
}

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": "account is required",
"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"
}
}