Ledger and reports
GET/v1/treasury
Get treasury
curl -X GET "https://api.52-28-238-205.sslip.io/v1/treasury" \ -H "Cookie: <console session cookie>"Returns the simulated Treasury: funds in connected wallets, idle and swept balances, positions and a yield projection at a fixed 4.20% APY. Simulated: no funds move. Requires ledger:read.
Server URL
https://api.52-28-238-205.sslip.ioGET/v1/treasuryBase URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Requires permissionledger:read
Held by
owner, admin, finance, merchant_owner, operator. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
Success.
application/json- response
simulated?SimulatedTrue when the figure is simulated and no funds move.
Default
trueapy_bps*Apy BpsSimulated annual yield in basis points (420 = 4.20%).
funds*idle_balance*swept_balance*wallets*array<>projection*positions*array<>[key: string]?anyGETGet trial balance
Returns total debits, total credits and their difference (0 when balanced) for the whole namespace, with a breakdown per asset. Requires ledger:read.
POSTSweep to yield
Opens a simulated yield position from idle funds and posts it to the simulated ledger. Requires reconcile; the amount must be between 1 and the idle balance.