Skip to content

Portfolio APY and PnL for one coldkey

GET
/portfolio-pnl-apy/

One coldkey’s returns: the APY over 7 days, 30 days and all time (apy, closing at apy_as_of), realized and unrealized profit and loss in rao and USD under two cost-basis methods (pnl), and the unrealized move of the last 24 hours (rolling_24h). include_subnets=true adds the same blocks per subnet under subnets[].

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

Coldkey SS58 address. 400 when missing or containing a NUL byte.

include_subnets
boolean

Add the per-subnet breakdown. True for true, 1 or yes; never a 400.

The coldkey’s APY, PnL and 24-hour move; null blocks when it has no snapshot yet.

Media typeapplication/json

One coldkey’s returns. Until the coldkey has a nightly snapshot, apy and pnl are null rather than zero: an unknown account is not an empty one.

object
account_known
required

Whether the address was ever seen on chain.

boolean
as_of
required

When pnl was computed: the request instant when pnl_source is live, else the nightly run’s.

string format: date-time
nullable
pnl_source
required

live: pnl was replayed at request time and marked at spot. snapshot: the nightly rows, served when the coldkey is too large to replay per request, the box-wide replay budget is spent, or the replay failed. Null when pnl is null.

string
nullable
apy
required

The returns, from the nightly snapshot, closing at apy_as_of. Null until the coldkey has one.

object
alpha
required

Percent per year, linear on a gain and compounded on a loss. The alpha earned on the alpha held, so no price move enters it.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
tao
required

Percent per year, annualised like alpha. The return in TAO, subnet price moves included; globally the whole wallet’s, its alpha at each subnet’s end-of-day spot where value_change_tao reads what selling it would fetch.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
usd
required

Percent per year, annualised like alpha. The return in USD, TAO/USD moves included.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
days_observed
required

Days each window spans, from its first day holding at least 1 % of its peak to its last; the fewer, the less reliable the rates.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
30d
required

The 30 days up to the day of apy_as_of.

integer
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
value_change_alpha
required

In alpha rao, signed. The alpha gained over each window, net of what the coldkey bought, sold or moved; globally a sum across subnets.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
value_change_tao
required

In rao, despite the name. The value gained over each window, signed, net of the coldkey’s own buys, sells and transfers.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
value_change_usd
required

In USD, as signed decimal strings. The same gain in USD, TAO/USD moves included.

object
7d
required

The 7 days up to the day of apy_as_of.

string
nullable
30d
required

The 30 days up to the day of apy_as_of.

string
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

string
nullable
flow_tao
required

In rao, despite the name. The net value the coldkey moved in, signed, at end prices; value_change_tao plus flow_tao is the gross change.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
basis_tao
required

In rao, despite the name. The wallet’s value on each window’s first day; value_change_tao over basis_tao is the window’s return.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
return_tao
required

Percent, signed. Set even when the window holds too few days for tao.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
return_usd
required

Percent, signed. Set even when the window holds too few days for usd.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
apy_as_of
required

The instant the apy windows close on: yesterday 23:59:59 UTC at the nightly, the last day whose balance row is finalized, never an intraday row. Null on a snapshot written before 2026-09.

string format: date-time
nullable
pnl
required

Profit and loss over all time, replayed live or read from the nightly rows, as pnl_source says. Null when the coldkey has none.

object
realized
required

Booked over all time whenever alpha left a position: sold, refunded, swapped to another subnet, transferred or burned. Root stake books none.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized
required

The alpha held, at its price at as_of, minus what it cost; staking rewards enter at zero cost. Root stake books none.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized_at_sale
required

unrealized with the alpha held at what selling it at as_of would pay: per subnet, all of it sold at once into its pool at constant product on the reserves, no fee, the valuation of the balance history. It reads under unrealized by that sale’s slippage, the same amount under each method; zero figures when nothing is held. Null when a subnet held has no sale value: its pool unread or dissolved, or a sale the chain refuses (more than 1 000 times the pool’s alpha reserve, or out of a pool holding under 0.001 TAO); on the global row whenever one subnet’s is; on rows stored before it existed.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
change_24h
required

Carries no transfer_* keys, nor an unrealized_at_sale.

object
since
required

Date of the daily row the delta is taken from: the newest one before the snapshot’s date.

string format: date
realized
required

The change of realized since the since row. Its usd_then also reprices all earlier PnL at the TAO/USD move; usd_throughout does not.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized
required

The change of unrealized since the since row.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
transfer_stake_out
required

Subnet stake sent to other coldkeys over all time, its sale already in realized. Root stake counts in transfer_tao_out.

object
tao
required

In rao, despite the name. What that alpha was worth in TAO when it moved, as the chain reported it.

integer
alpha
required

In alpha rao. The alpha moved.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_stake_in
required

Subnet stake received from other coldkeys over all time, entered in the cost basis at its value on arrival. Root stake counts in transfer_tao_in.

object
tao
required

In rao, despite the name. What that alpha was worth in TAO when it moved, as the chain reported it.

integer
alpha
required

In alpha rao. The alpha moved.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_tao_out
required

Always zero on a per-subnet row.

object
tao
required

In rao, despite the name. The TAO moved by plain transfer, or as root stake moved between coldkeys.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_tao_in
required

Always zero on a per-subnet row.

object
tao
required

In rao, despite the name. The TAO moved by plain transfer, or as root stake moved between coldkeys.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
cost_basis
required

Always null on the GLOBAL row: α of two subnets are not one asset.

object
alpha
required

Α still held, in α-rao, as the unrealized figure marked it.

integer
alpha_bought
required

Of alpha, the share bought, not earned as emission or received through a transfer of stake.

integer
tao
required

What ALL that α cost, τ in rao (WAC): the basis unrealized.tao.wac was marked against.

integer
usd
required

Decimal STRING. What that α cost in USD, at the rates paid.

string
bought_tao
required

Of tao, what the bought alpha cost, the numerator of avg_tao_bought. Null on a row stored before this split existed.

integer
nullable
bought_usd
required

Decimal STRING. The USD twin of bought_tao, at the rates paid.

string
nullable
lifetime_alpha_bought
required

Every α ever BOUGHT here, α-rao. No sale takes it back, so a closed position still carries it.

integer
lifetime_tao
required

Every τ ever spent buying it, in rao.

integer
lifetime_usd
required

Decimal STRING. The same, at the rates paid.

string
avg_tao
required

What an α COST: tao over every α held. Null when nothing is held.

integer
nullable
avg_usd
required

Decimal STRING. USD per WHOLE α at the rates PAID, so it cannot be derived from avg_tao and today’s τ/USD.

string
nullable
avg_tao_bought
required

What was PAID per α still held: bought_tao over alpha_bought. May read BELOW avg_tao, whose tao carries α received by transfer at the pool’s value, which nobody paid for here. Null on a position made only of emissions and receipts.

integer
nullable
avg_usd_bought
required

Decimal STRING. The USD twin of avg_tao_bought, at the rates paid.

string
nullable
avg_tao_lifetime
required

What was paid per α over the position’s WHOLE LIFE. The only average a fully exited position still has.

integer
nullable
avg_usd_lifetime
required

Decimal STRING. The USD twin of avg_tao_lifetime, at the rates paid.

string
nullable
rolling_24h
required

The unrealized move of the last 24 hours on the alpha held now, at request time. Null when the coldkey holds no stake.

object
unrealized_tao
required

In rao, despite the name. The alpha held now times its price change over 24 hours, signed, with no cost basis; root counts zero.

integer
since

as_of minus 24 hours, to the minute. Each subnet’s baseline price is its last at or before it.

string format: date-time
as_of

When the move was computed. A reply is cached for up to two minutes.

string format: date-time
subnets

?include_subnets=true only.

Array<object>
nullable
object
netuid
required

The subnet; 0 is root, whose line holds the root stake and the fund shares.

integer
apy
required

This subnet’s returns, from the nightly snapshot. Null when it has none, as for a position opened since the last one. On root (netuid 0) the position is the root stake plus the fund shares at what a claim would pay (root_rewards of /portfolio-balance/): alpha and tao are one rate wherever both are set, the funds’ value moves included. Stake moved in or out and share purchases are flows; a claim, which moves shares into the stake, is neither flow nor yield.

object
alpha
required

Percent per year, linear on a gain and compounded on a loss. The alpha earned on the alpha held, so no price move enters it.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
tao
required

Percent per year, annualised like alpha. The return in TAO, subnet price moves included; globally the whole wallet’s, its alpha at each subnet’s end-of-day spot where value_change_tao reads what selling it would fetch.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
usd
required

Percent per year, annualised like alpha. The return in USD, TAO/USD moves included.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
days_observed
required

Days each window spans, from its first day holding at least 1 % of its peak to its last; the fewer, the less reliable the rates.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
30d
required

The 30 days up to the day of apy_as_of.

integer
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
value_change_alpha
required

In alpha rao, signed. The alpha gained over each window, net of what the coldkey bought, sold or moved; globally a sum across subnets.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
value_change_tao
required

In rao, despite the name. The value gained over each window, signed, net of the coldkey’s own buys, sells and transfers.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
value_change_usd
required

In USD, as signed decimal strings. The same gain in USD, TAO/USD moves included.

object
7d
required

The 7 days up to the day of apy_as_of.

string
nullable
30d
required

The 30 days up to the day of apy_as_of.

string
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

string
nullable
flow_tao
required

In rao, despite the name. The net value the coldkey moved in, signed, at end prices; value_change_tao plus flow_tao is the gross change.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
basis_tao
required

In rao, despite the name. The wallet’s value on each window’s first day; value_change_tao over basis_tao is the window’s return.

object
7d
required

The 7 days up to the day of apy_as_of.

integer
nullable
30d
required

The 30 days up to the day of apy_as_of.

integer
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

integer
nullable
return_tao
required

Percent, signed. Set even when the window holds too few days for tao.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
return_usd
required

Percent, signed. Set even when the window holds too few days for usd.

object
7d
required

The 7 days up to the day of apy_as_of.

number format: double
nullable
30d
required

The 30 days up to the day of apy_as_of.

number format: double
nullable
all
required

The whole daily history up to the day of apy_as_of. No window spans a coldkey swap, nor on a subnet a new registration of its netuid.

number format: double
nullable
pnl
required

This subnet’s profit and loss, its current occupant’s only. Null when there is none, as on root, whose stake books none.

object
realized
required

Booked over all time whenever alpha left a position: sold, refunded, swapped to another subnet, transferred or burned. Root stake books none.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized
required

The alpha held, at its price at as_of, minus what it cost; staking rewards enter at zero cost. Root stake books none.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized_at_sale
required

unrealized with the alpha held at what selling it at as_of would pay: per subnet, all of it sold at once into its pool at constant product on the reserves, no fee, the valuation of the balance history. It reads under unrealized by that sale’s slippage, the same amount under each method; zero figures when nothing is held. Null when a subnet held has no sale value: its pool unread or dissolved, or a sale the chain refuses (more than 1 000 times the pool’s alpha reserve, or out of a pool holding under 0.001 TAO); on the global row whenever one subnet’s is; on rows stored before it existed.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
change_24h
required

Carries no transfer_* keys, nor an unrealized_at_sale.

object
since
required

Date of the daily row the delta is taken from: the newest one before the snapshot’s date.

string format: date
realized
required

The change of realized since the since row. Its usd_then also reprices all earlier PnL at the TAO/USD move; usd_throughout does not.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
unrealized
required

The change of unrealized since the since row.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
transfer_stake_out
required

Subnet stake sent to other coldkeys over all time, its sale already in realized. Root stake counts in transfer_tao_out.

object
tao
required

In rao, despite the name. What that alpha was worth in TAO when it moved, as the chain reported it.

integer
alpha
required

In alpha rao. The alpha moved.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_stake_in
required

Subnet stake received from other coldkeys over all time, entered in the cost basis at its value on arrival. Root stake counts in transfer_tao_in.

object
tao
required

In rao, despite the name. What that alpha was worth in TAO when it moved, as the chain reported it.

integer
alpha
required

In alpha rao. The alpha moved.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_tao_out
required

Always zero on a per-subnet row.

object
tao
required

In rao, despite the name. The TAO moved by plain transfer, or as root stake moved between coldkeys.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
transfer_tao_in
required

Always zero on a per-subnet row.

object
tao
required

In rao, despite the name. The TAO moved by plain transfer, or as root stake moved between coldkeys.

integer
usd
required

In USD, as a decimal string. tao at the TAO/USD of each move.

string
cost_basis
required

Always null on the GLOBAL row: α of two subnets are not one asset.

object
alpha
required

Α still held, in α-rao, as the unrealized figure marked it.

integer
alpha_bought
required

Of alpha, the share bought, not earned as emission or received through a transfer of stake.

integer
tao
required

What ALL that α cost, τ in rao (WAC): the basis unrealized.tao.wac was marked against.

integer
usd
required

Decimal STRING. What that α cost in USD, at the rates paid.

string
bought_tao
required

Of tao, what the bought alpha cost, the numerator of avg_tao_bought. Null on a row stored before this split existed.

integer
nullable
bought_usd
required

Decimal STRING. The USD twin of bought_tao, at the rates paid.

string
nullable
lifetime_alpha_bought
required

Every α ever BOUGHT here, α-rao. No sale takes it back, so a closed position still carries it.

integer
lifetime_tao
required

Every τ ever spent buying it, in rao.

integer
lifetime_usd
required

Decimal STRING. The same, at the rates paid.

string
avg_tao
required

What an α COST: tao over every α held. Null when nothing is held.

integer
nullable
avg_usd
required

Decimal STRING. USD per WHOLE α at the rates PAID, so it cannot be derived from avg_tao and today’s τ/USD.

string
nullable
avg_tao_bought
required

What was PAID per α still held: bought_tao over alpha_bought. May read BELOW avg_tao, whose tao carries α received by transfer at the pool’s value, which nobody paid for here. Null on a position made only of emissions and receipts.

integer
nullable
avg_usd_bought
required

Decimal STRING. The USD twin of avg_tao_bought, at the rates paid.

string
nullable
avg_tao_lifetime
required

What was paid per α over the position’s WHOLE LIFE. The only average a fully exited position still has.

integer
nullable
avg_usd_lifetime
required

Decimal STRING. The USD twin of avg_tao_lifetime, at the rates paid.

string
nullable
rolling_24h
required

unrealized_tao alone: this subnet’s part of the global move. Null when not held, or lacking a price now or 24 hours ago.

object
unrealized_tao
required

In rao, despite the name. The alpha held now times its price change over 24 hours, signed, with no cost basis; root counts zero.

integer
since

as_of minus 24 hours, to the minute. Each subnet’s baseline price is its last at or before it.

string format: date-time
as_of

When the move was computed. A reply is cached for up to two minutes.

string format: date-time
previous_occupants

?include_subnets=true only, else null: with subnets[], the lines whose pnl.realized sum to the global one.

Array<object>
nullable

A recycled netuid’s dissolved occupant the coldkey traded: its realized PnL, closed when the netuid registered its next occupant. No position, no APY: nothing of it is held. The netuid’s subnets[] line is its current occupant’s.

object
netuid
required

The netuid it held before a new subnet registered on it.

integer
registered_block
required

Its registration block; dTAO’s first block for an occupant registered before dTAO.

integer
registered_at
required

Block time of registered_block. Null when that block’s time is unknown.

string format: date-time
nullable
dissolved_block
required

The block that removed it.

integer
dissolved_at
required

Block time of dissolved_block. Null when that block’s time is unknown.

string format: date-time
nullable
pnl
required

Realized only: nothing of the occupant is held, so nothing is unrealized.

object
realized
required

Booked over its whole life, the refund paid at its dissolution included.

object
tao
required

In rao, signed: the figure in TAO, under each cost-basis method.

object
wac
required

In rao, signed. Weighted average cost: what leaves a position takes its average cost.

integer
fifo
required

In rao, signed. First in, first out: what leaves a position takes the cost of its oldest lots.

integer
usd_throughout
required

In USD, each trade at the TAO/USD of its hour, so the TAO/USD move during the hold counts.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string
usd_then
required

In USD: tao at the TAO/USD of the day it was computed, blind to the TAO/USD path during the hold.

object
wac
required

In USD, as a signed decimal string. Weighted average cost.

string
fifo
required

In USD, as a signed decimal string. First in, first out.

string

Examples

ExamplePortfolioPnlApy

One coldkey

{
"account_known": true,
"as_of": "2026-10-05T08:57:49.696903+00:00",
"pnl_source": "snapshot",
"apy": {
"alpha": {
"7d": -100,
"30d": -100,
"all": -100
},
"tao": {
"7d": -26.4126,
"30d": -15.0069,
"all": 4.8432
},
"usd": {
"7d": -88.2766,
"30d": 407.6184,
"all": -24.4534
},
"value_change_alpha": {
"7d": -69766860506,
"30d": -69766985801,
"all": -69401189081
},
"value_change_tao": {
"7d": -155319,
"30d": -11225250,
"all": 10650851
},
"value_change_usd": {
"7d": "-0.34020904",
"30d": "63.84742825",
"all": "-22.50371109"
},
"days_observed": {
"7d": 7,
"30d": 30,
"all": 342
},
"flow_tao": {
"7d": 0,
"30d": -808008528,
"all": -219023429
},
"basis_tao": {
"7d": 26484268,
"30d": 845562727,
"all": 234701527
},
"return_tao": {
"7d": null,
"30d": null,
"all": null
},
"return_usd": {
"7d": null,
"30d": null,
"all": null
}
},
"apy_as_of": "2026-10-04T23:59:59+00:00",
"pnl": {
"realized": {
"tao": {
"wac": -32126803,
"fifo": -32127066
},
"usd_throughout": {
"wac": "-10.32522869",
"fifo": "-10.32529529"
},
"usd_then": {
"wac": "-9.77425854",
"fifo": "-9.77433856"
}
},
"unrealized": {
"tao": {
"wac": 2298946662,
"fifo": 2298946662
},
"usd_throughout": {
"wac": "698.41048664",
"fifo": "698.41048664"
},
"usd_then": {
"wac": "699.43153245",
"fifo": "699.43153245"
}
},
"unrealized_at_sale": null,
"transfer_stake_out": {
"tao": 0,
"alpha": 0,
"usd": "0.00000000"
},
"transfer_stake_in": {
"tao": 2398863207,
"alpha": 81877549186,
"usd": "727.47143718"
},
"transfer_tao_out": {
"tao": 799835963,
"usd": "210.69278937"
},
"transfer_tao_in": {
"tao": 684771815,
"usd": "163.04616850"
},
"cost_basis": null,
"change_24h": {
"since": "2026-10-03",
"realized": {
"tao": {
"wac": 0,
"fifo": 0
},
"usd_throughout": {
"wac": "0.00000000",
"fifo": "0.00000000"
},
"usd_then": {
"wac": "0.05236669",
"fifo": "0.05236712"
}
},
"unrealized": {
"tao": {
"wac": 2299653674,
"fifo": 2299653674
},
"usd_throughout": {
"wac": "698.32806271",
"fifo": "698.32806271"
},
"usd_then": {
"wac": "699.64778621",
"fifo": "699.64778621"
}
}
}
},
"rolling_24h": {
"unrealized_tao": 1931,
"since": "2026-10-22T18:03:00+00:00",
"as_of": "2026-10-23T18:03:56.984388+00:00"
},
"previous_occupants": null
}

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