Query Account (Unsigned)
Query account information. No signature required - read-only operation.
Accepts a JSON body with POST request.
Query types:
type | Returns |
|---|---|
fullAccount | Complete state (margin + positions + orders + leverage settings) |
openOrders | Resting live orders (includes conditional orders parked in conditional books) |
feeTier | Account-only fee-tier quote snapshot (symbol optional). For global fee state use GET /feeState. |
fills | Paginated trade fills |
positions | Paginated closed positions |
fundingHistory | Paginated funding payments |
orderHistory | Paginated terminal order states |
activityHistory | Paginated account activity |
riskHistory | Paginated liquidation, ADL, and risk-vault events |
History queries return a plain typed {data, page} object; current-state queries retain
their existing array response. History limit defaults to 5000 and is
bounded to 1–5000. A first page may include inclusive startSlot and
endSlot bounds. A continuation includes the same type and user,
cursor, and an optional changed limit; it cannot include slot bounds.
margin
object; they do not expose the SDK’s internal metrics and aggregate objects.Query Targets
POST /account is unsigned. Current-state query types accept a master or
sub-account pubkey as user. History queries use the same endpoint and may
also query a physical isolated-account pubkey directly.
isoPubkey is supported only by the paginated history types.
Isolated accounts are managed via the i flag on order actions (see Isolated
Margin); their pubkeys also appear inline on
parent rows and can be used as to in margin transfer
top-ups.
To enumerate sub-accounts on a master, read subAccounts[] from its fullAccount response.
Request Examples
Response Schemas
Current-state responses are an array of externally tagged objects withfullAccount, openOrder, or feeTier. History types return a plain typed
{data, page} object.
History Queries
Usefills, positions, fundingHistory, orderHistory, activityHistory,
or riskHistory as the request type.
limitis optional, defaults to 5000, and accepts 1–5000.startSlotandendSlotare optional inclusive bounds on the first page.- Continue with the returned
cursor. A cursor request may changelimitbut cannot include slot bounds.
nextCursor; do not construct cursors from timestamps or row fields.
Fill rows include tradeId in "<slot>:<event-sequence>" form. REST history
and account WebSocket views of the same execution share the same value. Treat
it as an opaque network-local reconciliation key.
positions history rows may include averageEntryTime when available.
Full Account Response
Fortype: "fullAccount". Returns account state including margin, positions, open orders, and leverage settings. The example below shows selected fields.
kind- Account kind string. Current-state query responses useMasterEOAorSubAccount.parent- Parent master pubkey for sub-accounts; omitted when no parent existsname- Sub-account display name. Present on responses wherekind: "SubAccount"(i.e. when you passed the sub-account pubkey asuser); omitted on master responses.subAccounts- Children of the master, each{pubkey}. The list contains pubkeys only; query a sub-account directly withtype: "fullAccount"to see itsname. See Sub-AccountsauthorizedAgentWallets- Agent wallets registered on this account that may sign on its behalf. See Manage Agent WalletsbuilderCodeApprovals- Approved builder-code recipients as{recipient, maxFee}. Builder codes are builder-code fees on the wire; useabc/rbcto manage this list.lockedAmounts- Margin locked while a transfer or withdrawal is in progress, omitted when empty. Each row contains the actionhash,symbol,amount, and nanosecondlockedAttimestamp. Locks clear when the operation completes or is no longer pending.
Account-local and aggregate margin
The unprefixed fields insidemargin describe the queried account only. When
that account has attached isolated accounts, optional agg* fields in the same
object describe the account plus those isolated accounts. These totals do
not include separate sub-accounts. Do not add the unprefixed values to the
agg* values: that would count the parent twice.
Illustrative partial response for an account with isolated collateral:
positions and openOrders remain the combined parent-plus-isolated view,
with isolated rows identified by iso and isoPubkey. Public margin fields are
totalMargin and availableMargin, not totalBalance and availableBalance.
Position fields: symbol, size, price, fairPrice, notional, realizedPnl, unrealizedPnl, leverage, liquidationPrice, fees, funding, maintenanceMargin, averageEntryTime, lambda, riskAllocation, iso
averageEntryTime- Average entry time in nanoseconds.iso-trueif the position belongs to a per-instrument isolated account attached to this master/sub-account; otherwisefalseisoPubkey- Present only wheniso=true; pubkey of the isolated account. Use astointransferto top up isolated-account margin. It is valid asuserfor history queries, but not for current-state queries.protection- Optional attached reduce-only protective orders for this symbol
Open Orders Response
Fortype: "openOrders". Returns up to 5000 resting orders; each item is an object with key openOrder.
iso=true) belonging to that account tree.
Order-state tif values are gtc, ioc, postOnly, postOnlySlide, and
postOnlyJoin. The last two correspond to the JSON request values ALO_SLIDE
and ALO_JOIN; see Place & Cancel Orders.
Fee Tier Response
Fortype: "feeTier". Returns the account-only fee-tier quote snapshot. For global fee-state (policy, schedules, settlement totals) use GET /feeState.
scopeInstrument- Instrument scope resolved for this quoterollingVolume- Account rolling volume in resolved scope windowtierIndex- Active tier index (0-based)tierThreshold- Threshold volume of the active tier rowmakerBps/takerBps- Effective bps at current tierwindowDays- Rolling window length in days
Real-time Updates
For real-time account updates, use the WebSocket account stream.Body
Unsigned current-state or paginated-history query
feeTier returns the account-only fee-tier quote; use GET /feeState for global fee policy/schedule snapshots.
fullAccount, openOrders, feeTier, fills, positions, fundingHistory, orderHistory, activityHistory, riskHistory Account public key (base58)
"FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7"
Optional market symbol for feeTier
"BTC-USD"
Optional page size for history queries
1 <= x <= 5000Optional inclusive lower slot bound for the first history page
x >= 0Optional inclusive upper slot bound for the first history page
x >= 0Opaque history continuation; cannot be combined with slot bounds
Response
Current-state array or complete/default-policy typed history page
Complete account state with account tree, margin, positions, orders, and leverage settings