Saltar al contenido principal

Balances

Current balances and historical balances

GET /v2/balances

List the account asset balances

Amounts are in the underlying equity for tokenised assets by default; pass assetFormat=base for the settled SPV quantities that moved on chain and in the ledger. Every response echoes assetFormat and multiplier, so the units are never implicit.

Parámetros

ParámetroEnTipoRequeridoDescripción
assetFormatqueryAssetFormatnoHow to express tokenised-equity (xStock) amounts. rebased (default) = underlying equity (real shares); base = settled SPV tokens, i.e. what is held on chain and in the ledger. No effect on other assets.

Respuestas

CódigoDescripciónCuerpo
200Éxito.object
401application/problem+json (RFC 9457) — branch on code, not on the status: unauthorized (not retryable), key_expired (not retryable), key_revoked (not retryable).
403application/problem+json (RFC 9457) — branch on code, not on the status: insufficient_scope (not retryable), ip_not_allowed (not retryable), api_access_disabled (not retryable).
429application/problem+json (RFC 9457) — branch on code, not on the status: rate_limited (retryable).
500application/problem+json (RFC 9457) — branch on code, not on the status: internal_error (retryable).
502application/problem+json (RFC 9457) — branch on code, not on the status: downstream_unavailable (retryable).
503application/problem+json (RFC 9457) — branch on code, not on the status: maintenance (retryable).

GET /v2/balances/{assetSymbol}/history

Historical balances for an asset

End-of-period balance for one asset, at day, week or month granularity.

Amounts are SETTLED quantities and this endpoint takes no assetFormat. The points carry no per-point rebase factor, so expressing them as the underlying equity would mean applying TODAY's ratio to past history — after a 10:1 split every earlier point would appear to jump tenfold. A correct unscaled series beats a scaled and possibly false one.

assetSymbol still accepts either spelling: NVDAX reads the same series as NVDASPV, because that only selects which asset to read, never how it is expressed. The response echoes the settled code, so the label always matches the units.

Parámetros

ParámetroEnTipoRequeridoDescripción
assetSymbolpathstringThe asset code published as assetSymbol by GET /v2/assets. For a tokenised equity the rebased ticker also resolves — NVDAX reads the same series as NVDASPV.
pagequeryintegernoDefault: 1.
limitqueryintegernoDefault: 25.
startDatequerystringnoISO-8601 start date. Defaults to the first movement.
endDatequerystringnoISO-8601 end date. Defaults to now.
granularityqueryday | week | monthnoDefault: day.

Respuestas

CódigoDescripciónCuerpo
200Éxito.HistoricalBalancesResponse
401application/problem+json (RFC 9457) — branch on code, not on the status: unauthorized (not retryable), key_expired (not retryable), key_revoked (not retryable).
403application/problem+json (RFC 9457) — branch on code, not on the status: insufficient_scope (not retryable), ip_not_allowed (not retryable), api_access_disabled (not retryable).
404application/problem+json (RFC 9457) — branch on code, not on the status: not_found (not retryable).
429application/problem+json (RFC 9457) — branch on code, not on the status: rate_limited (retryable).
500application/problem+json (RFC 9457) — branch on code, not on the status: internal_error (retryable).
502application/problem+json (RFC 9457) — branch on code, not on the status: downstream_unavailable (retryable).
503application/problem+json (RFC 9457) — branch on code, not on the status: maintenance (retryable).

Esquemas

BalanceBaseRepresentation

CampoTipoDescripción
assetstringAsset code of the settled token — the SPV code for a tokenised equity, and the ordinary code otherwise. Always present. Ej.: NVDASPV.
balancestringBalance in settled units. Ej.: 10.
balanceFrozenstringFrozen balance in settled units. Ej.: 0.
balancePendingstringPending balance in settled units. Ej.: 0.

BalanceResource

CampoTipoDescripción
assetSymbolstringThe asset, named in the representation the amounts below are in — the rebased ticker on a rebased read of a tokenised equity, the settled code otherwise. Ej.: NVDAX.
balancestringEj.: 10.5.
balanceFrozenstringEj.: 0.
balancePendingstringEj.: 0.
balancePrefCurrencystringThis balance converted to the account's preferred currency. The unit is not repeated here — read preferredCurrency from GET /v2/account. Named for its unit, like balanceUSD. Ej.: 1837.50.
balanceUSDstringEj.: 1837.50.
balanceCapacityTotal (opcional)stringEj.: 5000.
balanceCapacityAvailable (opcional)stringEj.: 5000.
balanceCapacitySpent (opcional)stringEj.: 0.
multiplierstringThis asset's rebase factor as it stands NOW, published whether or not it was applied — so a client can convert between the two representations without a second read. "1" when the asset does not rebase. On a rebased read divide an amount by it to recover the settled (SPV) figure; on a base read multiply. Unlike an order or a fill — whose factor is the one stamped when they settled — a balance is a current holding, so the current factor is the correct one. Ej.: 1.05.
assetFormatanyWhich representation the amounts and assetSymbol above are in — the value you asked for, or the default. Always present, so a client never has to infer the units it was given. Ej.: rebased.
baseanyThe same holding in SETTLED units — what is held on chain and in the ledger. Present in BOTH representations, so a client reconciling against a webhook or a ledger entry never has to re-read with a different assetFormat. On a base read it repeats the figures above rather than disappearing, which is what keeps the shape stable.

HistoricalBalancePoint

CampoTipoDescripción
datestring
balancestringBalance at the end of the period, as an exact decimal string in plain notation — never exponential. Truncated to the asset operating precision. Parse it as a decimal, not a float. For a tokenised equity this is the SETTLED quantity: see the note on assetSymbol for why this one series is not offered in the rebased representation. Ej.: 500.62.

HistoricalBalancesResponse

CampoTipoDescripción
assetSymbolstringThe SETTLED asset code, echoed regardless of which spelling the request used — a tokenised equity is named by its SPV code here because the balances below are settled quantities. This series carries no assetFormat and is never rebased: the points have no per-point factor, so scaling them would apply today's ratio to past history. Ej.: BTC.
granularityday | week | month
startDatestring | null
endDatestring | null
dataHistoricalBalancePoint[]
paginationPaginationMeta

PaginationMeta

CampoTipoDescripción
pagenumberEj.: 1.
limitnumberEj.: 25.
totalItemsnumberEj.: 100.
totalPagesnumberEj.: 4.

Problem

CampoTipoDescripción
typestringStable problem-type URI. Resolves to docs for this error. Ej.: https://docs.skipo.com/errors/rate_limited.
titlestringShort, human-readable summary (stable, English). Ej.: Rate limit exceeded.
statusnumberHTTP status code. Ej.: 429.
codestringStable machine-readable error code (equals the last path segment of type). Ej.: rate_limited.
retryablebooleanWhether retrying the identical request may succeed. Ej.: true.
detail (opcional)stringHuman-readable, possibly localized detail.
instance (opcional)stringThe request path that produced the error.
traceId (opcional)stringTrace id — joins BigQuery api_request and Cloud Logging.

Volver a la referencia de endpoints. Ver también: Paginación · Errores · Ids y correlación.