メインコンテンツへスキップ
GET
Portfolio summary

承認

Authorization
string
header
必須

OAuth 2.1 for apps that act for a Burokku user: the authorization code grant with PKCE (S256) required of every client. Clients use a Client ID Metadata Document, or register at /oauth/register (at most 20 registrations an hour from one network). Set resource to https://api.burokku.app/v1: a token issued for the MCP server (the default without resource) is refused here with a 401 (invalid-token); a token is for one resource, so authorize once for each and refresh with the same resource (another gets invalid_target). Every grant includes portfolio.read. Authorization server metadata: https://app.burokku.app/.well-known/oauth-authorization-server; this API’s protected resource metadata: https://api.burokku.app/.well-known/oauth-protected-resource/v1. Access tokens last 1 hour; each refresh returns a new refresh token (use the newest), and one unused for 30 days lapses. OAuth errors are JSON, { error, error_description }.

Scopes

portfolio.read

Read balances, positions, activity and alerts. Every grant has it.

クエリパラメータ

account
string

One account, by its name as Burokku shows it (over REST, its id also works). Leave out for every account.

Required string length: 1 - 100
bundle
string

One bundle (a group of accounts), by its name. Leave out for every account.

Required string length: 1 - 100

レスポンス

OK

net_worth_usd
number
必須
in_wallets_usd
number
必須
in_defi_usd
number
必須
in_perps_usd
number | null
必須

Perp margin and open PnL; null without a perp account.

in_predictions_usd
number | null
必須

Prediction market shares; null without any.

change_24h_usd
number | null
必須
change_24h_pct
number | null
必須

Percent (12.5 is 12.5%).

accounts
object[]
必須
top_holdings
object[]
必須
needs_attention
integer
必須

How many risks Burokku flags (perps near liquidation, risky loans, heavy leverage, concentration).

必須範囲: -9007199254740991 <= x <= 9007199254740991
read_at
string<date-time>
必須

When these figures were read (ISO 8601, UTC).

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
refreshing
boolean
必須

True while Burokku reads the accounts again behind this answer; a later call has newer figures.

currency
object
必須