Account
Read balances, positions, account health, margin units, keys, signer policies, fee and staking tiers, the ledger, transfers, transaction receipts and outcomes, and Builder tiers and stats by account address, see how an account opens, and check the build and server time.
On this page
- Which call do I need?
- Pages and cursors
- Balances
- atlas.getBalances
- Positions
- atlas.getPositions
- Account state
- atlas.getAccountState
- Wallet
- atlas.getAccounts
- atlas.getKeys
- atlas.getSignerPolicy
- atlas.getFeeTier
- atlas.getStakingState
- Ledger
- atlas.getLedger
- Portfolio history
- atlas.getPortfolioHistory
- Transactions
- atlas.getTransactionReceipt
- atlas.getTransactionByHash
- atlas.getTransactions
- Transfers
- atlas.getTransfers
- Withdrawals
- atlas.getWithdrawals
- atlas.getWithdrawal
- Terms
- atlas.getTerms
- Builders
- atlas.getBuilderTiers
- atlas.getBuilder
- atlas.getBuilderPayouts
- atlas.getBuilderUsers
- Opening an account
- Service
- atlas.getVersion
- atlas.getTime
Account reads return what an account holds, how it got there, and whether it can trade. They are HTTP calls that take an explicit account address: every account, Main or sub-account, is named by its own 20-byte address (0x + 40 hex). Almost all of them are public. The staking read and the two Builder reads that can carry deal terms need a sign-in token.
- Reads
POST /account/rpc, named params- Auth
- None, except
atlas.getStakingState,atlas.getBuilderPayoutsandatlas.getBuilderUsers(bearer token) - Account id
- Its address,
0x+ 40 hex. Responses are lowercase; requests accept any case - Unknown account
- Error
-12015(Unknown account) from the state, balance, position, key, wallet, fee-tier, ledger, withdrawal, transaction-list and portfolio reads, and from the fill, order-history and funding lists when they would be empty. The transfer list andatlas.getOpenOrdersreturn an empty page instead - Opening an account
- The owner key's first signed command. There is no registration call
- Live updates
stream.account
Which call do I need?
| You want | Call |
|---|---|
| Cash per asset, staked or in a margin unit | atlas.getBalances |
| Open positions, with unrealized PnL and liquidation price | atlas.getPositions |
| Everything, grouped by staked, cross and isolated, plus account health, the wallet's state, its accepted terms and the limits | atlas.getAccountState |
| The accounts in a wallet | atlas.getAccounts |
| The wallet's owner, instruction keys, their bindings and nonces | atlas.getKeys |
| A signer policy's threshold and members | atlas.getSignerPolicy |
| The wallet's fee tier and 14-day volume | atlas.getFeeTier |
| The wallet's staking tier and staked ZRO | atlas.getStakingState |
| Every balance change, with its cause | atlas.getLedger |
| Account value, PnL and volume over time | atlas.getPortfolioHistory |
Whether a signed write applied, by txId | atlas.getTransactionReceipt |
What a signed write contained, by txId | atlas.getTransactionByHash |
| The recorded outcomes of an account's signed writes | atlas.getTransactions |
| Transfers into and out of an account | atlas.getTransfers |
| Withdrawals | atlas.getWithdrawals, atlas.getWithdrawal |
| The Terms of Use a wallet must accept | atlas.getTerms |
| The Builder tier table | atlas.getBuilderTiers |
| A Builder ID, terms, volume, payouts and users | atlas.getBuilder, atlas.getBuilderPayouts, atlas.getBuilderUsers |
| A new account | The owner key's first signed command (Main) or a signed createSubAccount (sub-account) |
Orders, fills and funding payments are read from the same endpoint. See Order reads.
Pages and cursors
Every history read returns one page, { rows, nextCursor }, newest first. Pass nextCursor back unchanged as cursor, with the same filters, for the next page. null ends the traversal. Don't infer the end from a short page, and don't parse the cursor: it is opaque. A cursor sent with different filters is -32602. Where a read takes from and to, both are Unix milliseconds, from inclusive and to exclusive, and from must be earlier than to (equal bounds are -32602, except on atlas.getTransactions and atlas.getWithdrawals, where they select nothing).
History can trail the live streams slightly. atlas.getLedger, atlas.getPortfolioHistory, atlas.getFills, atlas.getOrderHistory and the price histories also return coveredThrough: the time up to which that history is complete. It is not the time of the last row, and newer events may still arrive. An empty page means nothing happened only up to coveredThrough.
- Fills, order history and funding payments keep a traversal stable: every page after the first stays within the history covered when you read the first page, so rows don't shift under you. To see newer rows, start again from the first page.
- If a cursor is refused, start again from the first page.
Two rules hold for every read on this page:
- A history that can't be read is
-20003(Service unavailable), never an empty page ornull. Retry with backoff. - Absent means unknown, never zero. When an optional figure is absent, show "unavailable". Don't show zero or put an estimate in its place.
Balances
atlas.getBalances
atlas.getBalancesHTTP/account/rpcSettled cash per asset, one row per asset in each place the account holds it: staked (its staking position and pending unstake), cross (the cross unit) or isolated (the isolated unit of the market symbol names).
atlas.getBalancesHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBalances","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.accountAddressAccountAddress- Account to query. Always pass it: without it you get one staked row and one cross row per asset, summed across accounts, and the call costs 40 rate-limit units instead of 5.
Result: Balance[]
Balance
placeenumrequired- Where the account holds this cash.
staked: its staking position and pending unstake of the asset, locked and never collateral.cross: the cross unit.isolated: the isolated unit of the marketsymbolnames. symbolSymbol- On an
isolatedrow only: the market of the isolated unit holding this cash. assetstringrequired- Asset symbol, for example
USDT, asatlas.getAssetslists it. assetIdintegerrequired- Asset id of
asset. totalDecimalStringrequired- Ledger balance, exact to 12 decimal places whatever the asset's own decimals (a fee can leave digits finer than the asset's minor unit).
availableDecimalStringrequiredtotallessheld, exact to 12 decimal places. On astakedrow, the staking position an unstake may still take.heldDecimalStringrequired- What is set aside in this asset: the reserve of resting spot orders plus cash held for pending withdrawals. On a
stakedrow, the pending unstake, which no unstake can take again. Margin used by perp positions and orders is not held per asset. unstakeDueNsUint64String- On a
stakedrow with a pending unstake: when it returns whole to the cross unit, Unix nanoseconds. Absent otherwise.
In the example, 1,500 ZRO is staked. 500 of it is on its way back after an unstake, due at unstakeDueNs, and the other 1,000 can still be unstaked.
An address that holds no account yet, but has received deposits or transfers, returns what waits there as cross rows: the cash its first account takes when it opens. An address that holds neither is -12015.
Positions
atlas.getPositions
atlas.getPositionsHTTP/account/rpcOpen positions. A closed position is not listed, except an isolated unit that still holds margin: it is listed with size "0" and its isolatedMargin until the margin is withdrawn.
atlas.getPositionsHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getPositions","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","marketId":4294967298}}'Press Send to see the response.marketIdinteger- Only this market, by the numeric
marketIdatlas.getSymbolsreturns. accountAddressAccountAddressrequired- Account to query.
Result: Position[]
Position
marketIdintegerrequired- The market's numeric id, as
atlas.getSymbolslists it. symbolSymbolrequired- The market's display symbol. Several markets can share one: identify a market by
marketId. sizeDecimalStringrequired- Signed. Positive is long, negative is short.
entryPriceDecimalString- Average entry price.
marginModeenumrequiredcrossorisolated. See Margin modes.realizedPnlDecimalString- Cumulative price PnL booked each time the position was reduced or closed, against its average entry. Excludes trading fees, Builder Fees and funding, which settle into the balance.
cumulativeFundingDecimalString- Net funding the position has received (positive) or paid (negative) since it opened, in the market's quote asset: the sum of its
atlas.getFundingHistorypayments. unrealizedPnlAmount- The position's unrealized PnL at the mark, in the market's settlement asset. Absent when ATLAS holds no fresh figure for the position.
isolatedMarginAmount- Isolated positions only: the unit's margin, the same as its balance
totalinatlas.getAccountState. estLiquidationPricePrice- Isolated positions only: an estimate of the price at which this position would be liquidated, computed from the current marks and rounded onto the price grid against you: up for a long, down for a short. Absent on a cross position, when the estimate is negative, and when ATLAS holds no fresh figure for the position.
Positions carry no positionId and no leverage. Tell a cross position from an isolated one by marginMode. An isolated position's margin is what its unit holds: the openingMargin of the order that opened it, adjusted with moveIsolatedMargin. See Trading.
An absent unrealizedPnl or estLiquidationPrice is unknown, not zero: see Pages and cursors. Liquidation follows margin health, not a per-position price: see Liquidation.
Account state
atlas.getAccountState
atlas.getAccountStateHTTP/account/rpcOne call for the whole account: its staked balances, its cross unit, shared by every cross position, and one isolated unit per market held in isolated margin, each with its own cash and position. It also carries the cross unit's health figures, the wallet's state and accepted Terms of Use, the account's limits, its self-trade prevention level and its dead-man clock.
atlas.getAccountStateHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getAccountState","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.accountAddressAccountAddressrequired- Account to query. There is no aggregate view.
Result: AccountState
AccountState
asOfTimestampMsrequired- Time of the snapshot every figure here comes from.
walletAddressAccountAddress- The wallet that holds this account (its Main's address). Use it to find a sub-account's wallet. Absent for an address that holds no account yet.
stakedBalance[]required- The account's staked balances,
placestaked: one row per asset it stakes or is unstaking, in ascendingasset. Empty when it stakes nothing. crossCrossUnitrequiredThe cross unit. Its balances are
placecross, and its positions and ordersmarginModecross.›Show 2 child fieldsHide child fields
balancesBalance[]required- Cash in every asset, rows as
atlas.getBalancesreturns them. For an address that holds no account yet, what waits there unclaimed. positionsPosition[]required- Cross positions in any number of markets, rows as
atlas.getPositionsreturns them.
isolatedIsolatedUnit[]requiredOne per market held in isolated margin, in ascending market id. Empty when there are none. A unit opens with the account's first isolated order on the market and closes once its position is flat, it has no resting orders and it holds no cash. Its cash backs only its own position.
›Show 4 child fieldsHide child fields
marketIdintegerrequired- The unit's market, by numeric id.
symbolSymbolrequired- The market's display symbol.
balanceBalancerequired- The unit's cash, in the market's settlement asset.
totalis the unit's funded margin. positionPosition- The unit's position. Its
sizeis"0"until the opening order fills.
termsTermsVersion | nullrequired- The latest Atlas Terms of Use version the account's wallet accepted, through
enableTradingorenableBuilder, as{ id, version, contentHash }. A sub-account reports its Main's acceptance.nullwhen the wallet has accepted none. Compare all three fields withatlas.getTermsto decide whether to ask for a signature. Read at request time, not as ofasOf. walletStateenumrequired- The wallet's state.
pending: the default, until the wallet completesenableTrading; it can't add risk or transfer to another wallet.active: the wallet may trade.exit_only: set by the venue operator; the wallet can reduce, exit, withdraw and transfer between its own accounts, but can't add risk or transfer to another wallet, and its resting orders stay. stpLevelenumrequired- The wallet's self-trade prevention level, set with
setStpLevel:accountcancels a crossing maker of the same account,walletone of any account in the wallet. A wallet that never set it readsaccount. limitsAccountLimitsThe protocol's limits a new order is checked against, the same for every account. No limit applies per market here. Per-market order limits are on
atlas.getSymbols.›Show 2 child fieldsHide child fields
maxIsolatedUnitsintegerrequired- Most isolated units the account may hold at once. An order that would open one more is refused.
maxOpenOrdersintegerrequired- Most resting orders across all markets. An order that would rest past it is refused.
deadManTimeoutSecondsinteger- The timeout the last
cancelAllOrdersAfterset. Present only while the account's dead-man clock is running. deadManDeadlineNsUint64String- When the dead-man clock expires and cancels the account's orders, Unix nanoseconds. Present exactly when
deadManTimeoutSecondsis. Read it after a reconnect to decide whether to post again in time. healthAccountHealthThe cross unit's margin figures. Absent when ATLAS holds no fresh figures for the account. See
AccountHealth.›Show 7 child fieldsHide child fields
equityAmountrequired- Cross account value: collateral plus unrealized PnL of cross positions.
unrealizedPnlAmountrequired- Unrealized PnL of cross positions (already inside
equity). usedMarginAmountrequired- Initial margin for open positions plus the reserve for resting orders.
maintenanceMarginAmountrequired- Maintenance requirement for open positions. Always ≤
usedMargin. availableToTradeAmountrequiredequity − usedMargin. Risk-increasing actions need this ≥ 0. What you can withdraw is worked out per asset and can differ: see Withdrawals and transfers.maintenanceBufferAmountrequired- Distance to liquidation. Liquidatable when below 0. Not derivable from the other fields.
totalEquityAmountrequired- Net worth:
equityplus each isolated position's margin and PnL. Display only, never spendable.
walletState and stpLevel belong to the wallet, so every account in it reports the same values. Orders that add risk are refused while walletState is pending. See Opening an account.
AccountHealth
health is the cross unit's margin figures, the ones pre-trade checks use. It is absent when the account has no margin unit yet, its figures are stale, or the unit's markets don't all settle in one asset. In the terms of Account figures: equity is the cross margin balance, unrealizedPnl the cross unrealized PnL, usedMargin the cross initial margin plus the reserve of resting orders, maintenanceMargin the cross maintenance margin, availableToTrade the cross available margin, maintenanceBuffer the distance to liquidation at the maintenance haircuts (liquidation starts below 0; it is not equity − maintenanceMargin), and totalEquity the cross margin balance plus every isolated margin balance. They are not streamed: read atlas.getAccountState again to refresh them.
Wallet
Reads that cover the whole wallet: its accounts, its owner and keys, and its fee and staking tiers.
atlas.getAccounts
atlas.getAccountsHTTP/account/rpcEvery account in a wallet: the Main first, then the sub-accounts in the order they were opened. Pass the wallet's address, which is its Main's address. A sub-account's address is refused. To find a sub-account's wallet, read walletAddress from atlas.getAccountState.
atlas.getAccountsHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getAccounts","params":{"walletAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.walletAddressAccountAddressrequired- The wallet's address, which is its Main's address.
Result: WalletAccounts
WalletAccounts
walletAddressAccountAddressrequired- The wallet.
accountsWalletAccount[]requiredMain first, then sub-accounts in opening order.
›Show 2 child fieldsHide child fields
accountAddressAccountAddressrequired- The account.
kindenumrequiredmainorsub.
subAccountsUsedintegerrequired- Sub-accounts opened so far. A slot is never given back.
atlas.getKeys
atlas.getKeysHTTP/account/rpcFor the wallet that holds the account: the address its owner signs as, the owner key's last accepted nonce, and every instruction key bound to one of the wallet's accounts, with each binding's scope, Builder Fee caps and nonce mode. A known wallet with no bound keys returns an empty keys array.
atlas.getKeysHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getKeys","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.accountAddressAccountAddressrequired- Any account in the wallet.
Result: KeyList
KeyList
walletAddressAccountAddressrequired- The wallet.
ownerAddressEvmAddress | nullrequired- The address the wallet's current owner signs as: its owner key's address, or the identity of the signer policy that owns it.
nullwhen the wallet has no owner, for example after a rotation that left it unset. ownerKeyNonceUint64Stringrequired- The last gapless nonce of the wallet's owner key that was accepted:
"0"before any owner command, and again after a key rotation. The next owner command carries it plus one. keysKeyInfo[]requiredThe keys bound to the wallet's accounts. A key bound to none of them is not listed.
›Show 2 child fieldsHide child fields
instructionKeyEvmAddressrequired- The key's address,
0x+ 40 hex. bindingsKeyBinding[]requiredOne per account of the wallet the key is bound to, as its last bind set it.
›Show 5 child fieldsHide child fields
accountAddressAccountAddressrequired- The bound account.
scopeenumrequired- What the key may sign on this account.
INSTRUCTION_KEY_SCOPE_FULL: every trading action.INSTRUCTION_KEY_SCOPE_REDUCE_ONLY: cancels, mass cancel, the dead-man post and reduce-only orders. builderFeeCapobjectrequired- The highest Builder Fee rates, in bps, the key may sign on this account's orders:
perpBpsandspotBps, exact decimals. nonceModeenumrequired- How the key's requests on this account carry their nonce, fixed when the binding is first made:
GAPLESS(a counter that steps by one) orINCREASING(a timestamp nonce). See Nonce. lastGaplessNonceUint64StringGAPLESSbindings only: the last gapless nonce accepted,"0"before any. The key's next request for this account carries it plus one.
A key bound in several wallets appears in each, with that wallet's bindings. The values follow committed commands with a short delay: if you sign the next gapless nonce from an older value and it is refused as not next, read again and sign the value read plus one. Keys are bound and removed with setInstructionKey. See Trading.
atlas.getSignerPolicy
atlas.getSignerPolicyHTTP/account/rpcA signer policy's record: the identity the venue assigned it, how many member signatures a proof needs, and its members. A wallet owned by a policy reports the policy's identity as ownerAddress in atlas.getKeys; read the policy here to show what signing for that wallet needs. A record never changes once created.
atlas.getSignerPolicyHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getSignerPolicy","params":{"identity":"0x3e5a7c9b1d2f4e6a8c0b2d4f6e8a1c3b5d7f9e2a"}}'Press Send to see the response.identityEvmAddressrequired- The policy identity: the address the policy signs as.
Result: Policy, or null when no record is held under identity.
Policy
identityEvmAddressrequired- The identity the venue assigned the policy.
thresholdintegerrequired- How many member signatures a proof of the policy needs, 1 to 10.
membersEvmAddress[]required- The members' addresses, 2 to 10, in strictly increasing order.
null covers an address that is not a policy identity and a policy whose createSignerPolicy is not visible yet.
atlas.getFeeTier
atlas.getFeeTierHTTP/account/rpcThe wallet's user fee tier, its 14-day weighted volume and what the next tier needs, from the latest tier snapshot. The tier sets the wallet's taker and maker rates.
atlas.getFeeTierHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getFeeTier","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.accountAddressAccountAddressrequired- Any account of the wallet.
Result: FeeTier
FeeTier
walletAddressAccountAddressrequired- The wallet's Main account.
userTierstring | nullrequired- User tier name, such as
U2.nullbeforesnapshotAt. weightedVolume14dDecimalString | nullrequired- Weighted volume over the 14 days to
snapshotAt, summed over the Main and every sub-account. See Trading fees for the weighting.nullwhensnapshotAtis. nextTierobject | nullrequired- The next tier and the volume it needs, as
{ tier, weightedVolume14d }.nullat the highest tier the wallet can reach and whensnapshotAtisnull. snapshotAtTimestampMs | nullrequired- The latest tier snapshot that includes this wallet.
nullbefore one does, for example for a wallet opened since the latest snapshot.
Which tiers a wallet can reach is on Trading fees. The staking discount on top of this tier is in atlas.getStakingState.
atlas.getStakingState
atlas.getStakingStateHTTP/account/rpc authThe wallet's staking tier, the ZRO staked across it, and what the next tier needs, from the latest tier snapshot. The tier sets the staking discount on the wallet's fees. Send Authorization: Bearer <accessToken> from an auth.login, signed by the wallet's owner key or by an instruction key bound to accountAddress. The result covers the whole wallet, Main and every sub-account, even when the key is bound only to that account.
atlas.getStakingStateHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getStakingState","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'Press Send to see the response.accountAddressAccountAddressrequired- Any account of the wallet. The token must cover it.
Result: StakingState
StakingState
walletAddressAccountAddressrequired- The wallet's Main account.
stakingTierstring | nullrequired- Staking tier name, such as
S2.nullbeforesnapshotAt. stakedZroDecimalString | nullrequired- ZRO staked across the Main and every sub-account at
snapshotAt.nullwhensnapshotAtis. nextTierobject | nullrequired- The next tier and the stake it needs, as
{ tier, stakedZro }.nullat the highest tier and whensnapshotAtisnull. snapshotAtTimestampMs | nullrequired- The latest tier snapshot that includes this wallet.
nullbefore one does.
| Error | When |
|---|---|
-20002 | No access token |
-12019, -12020 | The token has expired or is invalid. Log in again |
-12009 | The token doesn't cover accountAddress, or its key no longer acts for that account |
-20003 | The tier can't be read |
Each account's own stake and pending unstake are its place staked rows in atlas.getBalances.
Ledger
atlas.getLedger
atlas.getLedgerHTTP/account/rpcEvery change to the account's balances, newest first: trades, fees, funding, interest, deposits, transfers, staking, withdrawals, liquidations, ADL and force closes. Only the account's own legs are returned. Filter type to liquidation or adl for liquidation history, and to withdrawal for withdrawals.
atlas.getLedgerHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getLedger","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","asset":"USDT","limit":2}}'Press Send to see the response.Both rows come from one fill: the PnL it realized and the fee it paid.
accountAddressAccountAddressrequired- Account to query.
assetstring- Only this asset, by symbol.
typeenum- Only this kind of entry:
fill,deposit,withdrawal,transfer,funding,interest,liquidation,adlorforce_close. fromTimestampMs- Inclusive lower bound, Unix ms.
toTimestampMs- Exclusive upper bound, Unix ms.
limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page, unchanged. Keep every filter the same.
Result: LedgerPage
LedgerPage
rowsLedgerEntry[]requiredNewest first.
›Show 13 child fieldsHide child fields
transactionIdstringrequired- Opaque id of the booked transaction. Every account and leg of one transaction shares it. Not a number or a sort key.
legIndexintegerrequired- The leg within the transaction. With
transactionId, the entry's identity. timestampTimestampMsrequired- When the transaction was booked.
typeenumrequired- What booked it. Same values as the
typefilter. kindenum- On
transferandliquidationrows only: the sub-kind, which says whatcauseIdholds.internal,isolated_add,isolated_remove,stake,unstakeorunstake_releaseon a transfer;vault_assignment(the position backstop took over a position) on a liquidation. More values may be added: keep a row whosekindyou don't know. See the table below. causeIdstringrequired- The id of what booked the row.
assetstringrequired- Asset symbol.
assetIdintegerrequired- Asset id.
amountDeltaDecimalStringrequired- Signed change to the balance.
reasonenumrequired- Why this leg moved:
trade,fee,funding,interest,transfer,deposit,withdrawal,liquidation,adlorforce_close. symbolSymbol- The market, on trade, funding, liquidation, ADL and force-close legs.
orderIdOrderId- On a fill's
tradeandfeelegs: the order that filled. The fill itself is itstradeId, thecauseId, inatlas.getFills. memostring- On
transferrows of kindinternalonly: the 64 signed memo bytes, unchanged, as0x+ 128 hex. All zero means no memo. Use it to match a transfer to your own records.
nextCursorstring | nullrequired- Pass back unchanged as
cursor.nullends the traversal. coveredThroughTimestampMs | nullrequired- How far the ledger is complete.
nullwhen unknown.
type | kind | causeId |
|---|---|---|
fill | The fill's tradeId | |
deposit | The digest of the request that booked the deposit | |
withdrawal | The withdrawalId: the withdraw's txId, the transferId its result carried | |
transfer | internal | The transfer's own transactionId |
transfer | isolated_add, isolated_remove | Its own transactionId |
transfer | stake, unstake, unstake_release | Its own transactionId |
funding, interest | The funding session's sessionId | |
liquidation | vault_assignment | The liquidation id |
adl | The ADL id | |
force_close | Opaque id of the force close |
A causeId is unique only within its type, and within its kind on a transfer, so match on those too. Rows with the same cause share it: a fill's trade and fee legs share the tradeId. A withdrawal is one debit of the full amount under its withdrawalId. A funding or interest row's timestamp is when the settlement was booked, which can be after the session that fixed the charge.
An unstake shows as an unstake row when it is requested and an unstake_release row when the pending unstake returns to the cross unit.
Portfolio history
atlas.getPortfolioHistory
atlas.getPortfolioHistoryHTTP/account/rpcAccount value, PnL and traded volume over trailing windows, for a portfolio chart. Values are in the margin base asset (for example USDT).
atlas.getPortfolioHistoryHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getPortfolioHistory","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","window":"day"}}'Press Send to see the response.In this example the account made 12.4, then gave back 3.5. The third point is a 500 deposit: it raised the value without counting as PnL. A real day window has many more points; the example leaves them out.
accountAddressAccountAddressrequired- Account to query.
windowenumday(24 hours),week(7 days),month(30 days) orall_time. Omit for all four, in that order.
Result: PortfolioHistory
PortfolioHistory
accountAddressAccountAddressrequired- The account.
windowsPortfolioWindow[]requiredThe requested windows. Empty before the account has any history.
›Show 4 child fieldsHide child fields
windowenumrequired- Which window.
accountValueHistoryPortfolioPoint[]required- Account value, cross and isolated holdings counted once, without risk haircuts. Oldest first, as
{ timestamp, value }. pnlHistoryPortfolioPoint[] | nullrequired- At the same times: the change in account value less net deposits, withdrawals, transfers and non-trading payouts since the window's first point. Fees, maker rebates and booked funding count. The first point is zero.
nullwhen PnL can't be worked out for the window;accountValueHistoryandvolumeare still served. volumeDecimalStringrequired- Traded notional over the window, unweighted: your own executed trades only, not positions moved to you by ADL or a liquidation takeover.
coveredThroughTimestampMs | nullrequired- How far the history is complete.
nullbefore the account has any history.
- Points fall at snapshot times, not on a fixed grid. Their density falls as the window grows.
- A window may start slightly before its nominal start, and ends at
coveredThrough. - Hide the PnL chart for a window whose
pnlHistoryisnull. Don't draw zero.
Transactions
Every signed write is named by its txId: the digest its credential signs (its Opaque or Typed digest), 0x + 64 lowercase hex. It is not a hash of the signature, not the nonce and not a client order id. The write's result or error carries it, and so do the orders, fills and history rows it produced. Three reads look a write up by it:
| Read | Answers |
|---|---|
atlas.getTransactionReceipt | Did ATLAS apply it? |
atlas.getTransactionByHash | What did it sign? |
atlas.getTransactions | What was its recorded outcome, applied or refused? |
atlas.getTransactionReceipt
atlas.getTransactionReceiptHTTP/account/rpcWhether one signed transaction has been applied. committed means it is applied and final. Use it to settle what happened after a lost reply or an uncertain error.
atlas.getTransactionReceiptHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactionReceipt","params":{"txId":"0xb1337dd9087bea77f000559a4282bc91a6665602d35b6cc240a516226ed7d8db"}}'Press Send to see the response.txIdTxIdrequired- The transaction identifier,
0x+ 64 lowercase hex: thetxIdthe write's result or error carried.
Result: { txId, status: "committed" }, or null when no applied entry carries the txId.
A receipt carries no result and no refusal. null means not applied: refused, or not visible yet. It can still apply, until its nonce settles it (the last step below).
Read the receipt
After an unknown outcome, such as-10010,-32603or a lost reply, callatlas.getTransactionReceipt.committed: it applied. Don't send it again.Null: check for an error
Ifatlas.getTransactionswith the acting account and thetxIdshows anerror, nothing changed. Resend the same signed bytes only if the code is retryable, no higher nonce of the key on the same channel has applied, and the nonce has not expired; otherwise fix the cause and sign again with a new nonce. No row proves nothing: a refused write is normally not recorded, and its error answer was the only record. See Errors.Otherwise resend the same bytes
Resend the identical signed request, same nonce and signature: it applies at most once. Don't sign the same intent again with a new nonce while the outcome is open: both could apply.A higher nonce or expiry settles it
Once a later transaction from the same key and nonce channel has applied, the earlier one can never apply. Nor can it once its nonce has expired by the venue's time, which never goes back: fromexpires_atfor a gapless nonce, or once an increasing nonce falls behind the nonce window.nullis then final onceatlas.getTransactions, for any account, lists a row whosecreatedAtis at or after that moment: the receipt and that list stop at the same point in the history, so a receipt read after you see that row covers that moment.
atlas.getTransactionByHash
atlas.getTransactionByHashHTTP/account/rpcWhat one signed transaction is: its signed fields and the credential that signed them, exactly as signed. It answers once an attempt of the transaction is recorded, applied or refused. Read what it did with atlas.getTransactionReceipt or atlas.getTransactions.
atlas.getTransactionByHashHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactionByHash","params":{"txId":"0xb1337dd9087bea77f000559a4282bc91a6665602d35b6cc240a516226ed7d8db"}}'Press Send to see the response.The example shortens the byte fields.
txIdTxIdrequired- The transaction identifier.
Result: SignedTransaction, or null when no attempt is recorded.
SignedTransaction
txIdTxIdrequired- The transaction identifier.
chainIdintegerrequired- The ATLAS zone id the transaction names.
authorityAccountAddressrequired- The account whose authority the transaction exercises.
signerEvmAddressrequired- The key, or the signer policy, the transaction names as its signer.
nonceNoncerequired- The signed nonce, in the form of the key's slot. See Nonce.
kindstringrequired- The command's name, as
atlas.getTransactionsnames it, for exampleplaceOrder. commandstringrequired- The command's bytes exactly as signed: its 2-byte selector, then its encoding.
0x+ hex. sigSuitestringrequired- The suite byte:
0x11Typed with one key,0x12Typed with a signer policy,0x01Opaque with one key. domainChainIdUint64String | nullrequired- The EIP-712 domain chain id a Typed credential was made at: the wallet's chain, not the ATLAS
chainId.nullfor an Opaque credential. proofstringrequired- The proof bytes: a 65-byte
r‖s‖vsignature for one key, or each signing member's index byte and signature for a signer policy. envelopestringrequired- The whole signed envelope, the bytes
atlas.sendRawTransactiontook. Verify the credential over it yourself if you need to.
null means no attempt is recorded: it was refused, or it is not visible yet. It doesn't prove the transaction was never sent.
atlas.getTransactions
atlas.getTransactionsHTTP/account/rpcThe account's recorded signed writes and their outcomes, newest first. Recorded refusals are included.
atlas.getTransactionsHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactions","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","kind":"placeOrder","limit":1}}'Press Send to see the response.accountAddressAccountAddressrequired- Account to query.
txIdTxId- Only this transaction. Returns zero or one row; another account's
txIdreturns no rows, not an error. kindstring- Only this command, for example
placeOrder. An unknown or unsupported kind is-32602. fromTimestampMs- Inclusive lower bound on
createdAt, Unix ms. toTimestampMs- Exclusive upper bound on
createdAt, Unix ms. limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page, with the same filters.
Result: { rows: TransactionRecord[], nextCursor }, newest first. See Pages and cursors. A pending row can complete after you page past it: read it again by txId.
TransactionRecord
txIdTxIdrequired- The submission's identity. Resending the same signed request is the same record, never a second one.
accountAddressAccountAddressrequired- The account the command acts for: the payload's account, a transfer's sending
account, or the Main of a command that names awallet. kindstringrequired- The command's name, for example
placeOrder. createdAtTimestampMsrequired- When the first attempt was recorded. Never changes.
statusenumrequiredpending: an attempt is recorded without an outcome. It does not mean it is still being processed.completed:resultorerrorholds the outcome.resultobject | nullrequired- The applied outcome: the write's result, in the shape of its result; see Results. Compare decimals numerically. Once set it never changes.
nullwhile pending or when refused. errorobject | nullrequired- The latest recorded refusal, as the write's JSON-RPC error returned it. A later attempt that applies replaces it with
result.nullwhile pending or once applied.
These kinds are covered: placeOrder, cancelOrder, replaceOrder, cancelAllOrders, cancelAllOrdersAfter, moveIsolatedMargin, setStpLevel, createSubAccount, createSignerPolicy, internalTransfer, transfer, withdraw, stake, unstake, rotateOwnerKey, setInstructionKey and setWalletConfigBatched (the grant that activates a wallet after enableTrading). A signed message such as enableTrading has no record. Any other kind is left out of the list and is -32602 as a kind filter. Advanced orders have their own reads (see Advanced order reads).
Transfers
atlas.getTransfers
atlas.getTransfersHTTP/account/rpcBooked transfers into and out of one account, newest first, each with its memo unchanged. A transfer appears only once it is booked, so every row is final. Pass transferId to look up one transfer.
atlas.getTransfersHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransfers","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","limit":20}}'Press Send to see the response.The memo above is the UTF-8 text invoice-42, padded with zero bytes to 64.
accountAddressAccountAddressrequired- Account to query.
transferIdstring- Return only this transfer.
0x+ 64 lowercase hex. limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page, unchanged. Omit for the first page.
Result: TransferHistoryPage
TransferHistoryPage
rowsTransferRecord[]requiredTransfers, newest first.
›Show 8 child fieldsHide child fields
transferIdstringrequired0x+ 64 hex: the EIP-712 hash of the signed transfer, the sametransferIditsatlas.sendRawTransactionresult carried. Both sides of a transfer share it.accountAddressAccountAddressrequired- The account this row is for. Each side names only its own account.
directionenumrequiredincreditsaccountAddress;outdebits it.assetIdintegerrequired- Asset id. See
atlas.getAssets. amountPositiveDecimalStringrequired- Amount moved.
memostringrequired- The 64 signed memo bytes, unchanged, as
0x+ 128 hex. All zero means no memo. statusenumrequired- Always
transferComplete: the destination holds the funds and the transfer is final. timestampMsTimestampMsrequired- Time of the block that booked the transfer.
nextCursorstring | nullrequired- Opaque. Pass back as
cursor;nullends the traversal. The key is always present.
Transfers are sent with internalTransfer (within your wallet) or transfer (to any account). For who can sign which, see Transfers and withdrawals; for the rules, see Withdrawals and transfers.
Withdrawals
A withdrawal is a signed withdraw that sends funds to another Zero zone. The amount must be at least the asset's withdrawalMinimum and name one of its withdrawalZones, both on atlas.getAssets. For fees and when a withdrawal is accepted, see Withdrawals and transfers. Track one with:
atlas.getWithdrawals(one row per signed withdrawal, applied or rejected, newest first) oratlas.getWithdrawalwith itswithdrawalId, thetransferIdthe write returned: its status and each recorded attempt.atlas.getTransactionReceiptwith itstxId(thetransferIdthe write returned), oratlas.getTransactionswithkindwithdraw: whether the signed request applied.atlas.getLedgerwithtypewithdrawal: one debit of the full amount, with thetxIdascauseId.stream.account: anaccountReportreport of kindwithdrawwith the amount, destination zone and recipient.
The write answers { status: "ok", transferId } once ATLAS has booked the withdrawal. That confirms the debit, not arrival on the destination zone, and no ATLAS read reports arrival. Confirm it on the destination zone itself: once ATLAS's block that booked the withdrawal settles and the message is delivered, destinationApp pays receiveAmount to receiver there. After a timeout the outcome is unknown: check the receipt or the ledger before you send another withdrawal.
atlas.getWithdrawals
atlas.getWithdrawalsHTTP/account/rpcOne account's withdrawals, newest first, one row per signed withdrawal, applied and rejected alike. A withdrawal sent more than once is one row: it is applied once any attempt applied, and rejected when every recorded attempt was refused. A refused attempt may not be listed at all: its error answer is then the only record.
accountAddressAccountAddressrequired- Account to query.
statusenumappliedorrejected. Omit for both.fromTimestampMs- Inclusive lower bound on
createdAt. toTimestampMs- Exclusive upper bound on
createdAt. Equal bounds return no rows. limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page, unchanged, with the same filters. Omit for the first page.
Result: { rows: Withdrawal[], nextCursor }. See Pages and cursors.
Withdrawal
withdrawalIdstringrequired0x+ 64 lowercase hex: thetransferIdthewithdrawwrite answered with. Every attempt of the same signed withdrawal shares it.accountAddressAccountAddressrequired- The account that withdrew.
statusenumrequiredapplied: debited on ATLAS and queued for payout todestinationZone. No ATLAS read reports arrival there: checkreceiveron that zone (see Withdrawals).rejected: every recorded attempt was refused, and nothing moved.createdAtTimestampMsrequired- Time of the first recorded attempt.
fromandtofilter on it. assetIdinteger- Asset withdrawn. See
atlas.getAssets. amountDecimalString- The amount debited, as signed.
destinationZoneinteger- The Zero zone the funds go to, as signed.
receiverstring0x+ 64 hex: the receiving account ondestinationZone, as signed. An EVM address is left-padded with zero bytes.memostring- The signed memo bytes, unchanged.
destinationAppstring- The app on
destinationZonethat pays out. Only whenapplied. receiveAmountDecimalString- What the destination receives. Only when
applied. rejectReasonJsonRpcError- The refusal of the last recorded attempt. Only when
rejected. See Errors.
{
"withdrawalId": "0x1111111111111111111111111111111111111111111111111111111111111111",
"accountAddress": "0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15",
"status": "applied",
"createdAt": 1791210612345,
"assetId": 1,
"amount": "25",
"destinationZone": 19,
"destinationApp": "0xabcd",
"receiver": "0x0000000000000000000000001111111111111111111111111111111111111111",
"memo": "0x",
"receiveAmount": "25"
}A status filter doesn't freeze a row: a withdrawal listed as rejected becomes applied if a later attempt of the same signed withdrawal applies.
| Code | When |
|---|---|
-32602 | Invalid params, or a cursor sent with different filters |
-12015 | Unknown account |
-20003 | History can't be read. Retry with backoff |
atlas.getWithdrawal
atlas.getWithdrawalHTTP/account/rpcOne withdrawal and each recorded attempt of it.
accountAddressAccountAddressrequired- Account that owns the withdrawal.
withdrawalIdstringrequired- The
transferIdthewithdrawwrite answered with.
Result: { withdrawal, steps }, or null.
withdrawalWithdrawalrequired- The current row, as
atlas.getWithdrawalslists it. stepsobject[]requiredOne per recorded attempt, oldest first.
›Show 3 child fieldsHide child fields
statusenumrequiredappliedorrejected.timeTimestampMsrequired- When the attempt was recorded.
rejectReasonJsonRpcError- The attempt's refusal. Only when
rejected.
null means this account has no withdrawal with that id yet. It doesn't prove the withdrawal was never sent: a recent one may not be visible yet. Errors are as for atlas.getWithdrawals.
Terms
atlas.getTerms
atlas.getTermsHTTP/account/rpcThe Atlas Terms of Use in force and where to fetch the text. There is one terms document: every wallet accepts it to trade, with enableTrading, and every Builder with enableBuilder. A signer accepts exactly the terms object returned here; anything else is refused.
atlas.getTermsHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTerms","params":{}}'Press Send to see the response.idstring- Return the version in force only if it has this id.
versionstring- Any published version of
id. Needsid.
Result: Terms[]. Without params, the version in force: the newest whose effectiveAt has passed, or an empty array before the first.
Terms
termsTermsVersionrequiredWhat a signer commits to when accepting.
›Show 3 child fieldsHide child fields
idstringrequired- Stable id of the document, across versions.
versionstringrequired- The published revision.
contentHashstringrequired- keccak256 of the exact published text,
0x+ 64 lowercase hex.
effectiveAtTimestampMsrequired- When this version comes into force.
documentUrlstringrequired- The full text, CommonMark Markdown in UTF-8, served as
text/markdown. The URL is named by the content hash, so its content never changes.
Before you show the terms for acceptance, fetch documentUrl and check that keccak256 of the downloaded bytes equals terms.contentHash. Render the Markdown for display; hash the raw bytes.
Builders
A Builder is an app that routes orders and earns a Builder Fee. Public reads serve the tier table and a Builder's dashboard. Two private reads, which can carry deal terms, need an access token. From a restricted region these return -20014.
atlas.getBuilderTiers
atlas.getBuilderTiersHTTP/account/rpcThe published Builder Tier table, lowest tier first: each tier's Builder Rebate and the 14-day Builder Volume or staked ZRO that reaches it. Public, no params.
atlas.getBuilderTiersHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBuilderTiers","params":{}}'Press Send to see the response.The example is illustrative and shows only the first three tiers. See Builder rebates, and read the live table from this method.
BuilderTierTable
tiersBuilderTierThreshold[]requiredThe tiers, lowest first.
›Show 4 child fieldsHide child fields
tierstringrequired- Tier name, such as
B0.B0toB3are Tier 1 to Tier 4 in these docs and the Builder Portal. rebatePctDecimalStringrequired- The tier's Builder Rebate percentage.
builderVolume14dDecimalStringrequired- 14-day Builder Volume that reaches the tier.
stakedZroDecimalStringrequired- Staked ZRO that reaches the tier.
The table is served as last published; there are no built-in values. Before a table is published, or if it can't be read, the call is -20003.
atlas.getBuilder
atlas.getBuilderHTTP/account/rpcThe Builder ID, the Terms of Use version it last accepted, and its volume in UTC buckets.
atlas.getBuilderHTTP POSTcurl -s https://<api-host>/account/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBuilder","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","window":"day","interval":"1h"}}'Press Send to see the response.The example is cut to the last two of 25 hourly buckets.
accountAddressAccountAddressrequired- The Builder's Main account.
windowenumday,week,monthorall_time, ending now. Defaultdaywhenfromis absent. Not allowed withfrom.fromTimestampMs- Inclusive range start, Unix ms. Replaces
window. Use it for a fixed range such as a payout period. toTimestampMs- Exclusive range end. Only with
from; defaults to now. intervalenum- Bucket size:
1hor1d. Default1d. Any other value is-32602.
Result: Builder
Builder
builderIdBuilderIdrequired- The Builder ID,
0x+ 40 hex (20 bytes), issued by the firstenableBuilder. Not the Builder's address. termsTermsVersion | nullrequired- The Terms of Use version the Builder's wallet last accepted, through
enableBuilderorenableTrading.nullwhen it has accepted none. Whenatlas.getTermsshows a newer version in force, ask the Builder to accept it withenableBuilder. statsBuilderStats | nullrequiredVolumes and fees in the margin base asset (for example USDT), counting only fills of markets quoted in it.
nullwhile the volumes can't be read; retry later. Never zeros in its place.›Show 5 child fieldsHide child fields
windowenum- The window requested. Absent when the request gave
from. intervalenumrequired- The bucket size.
totalsobjectrequiredbuilderVolume,appVolume,builderFee,stampedUsersandnewUsersover the range.seriesobject[]required- Oldest first, one per bucket, zeros included:
t(bucket start),partial(the current bucket),builderVolumePerps,builderVolumeSpot,appVolume,builderFee,stampedUsers(wallets stamped by the bucket's end) andnewUsers(stamped during it). asOfTimestampMsrequired- Fills up to this time are counted.
- Builder Volume is paid flow from wallets stamped with the Builder ID, on any app. App Volume is flow through orders carrying the Builder ID. A liquidation fill counts in Builder Volume, not App Volume.
builderFeeis the Builder Fee charged on App Volume fills, counted when the fill happens, before it is paid out. The Builder Rebate is computed per payout period and reported byatlas.getBuilderPayouts.- Buckets align to UTC. A range's start is rounded down to a bucket boundary, so a
weekwindow in1dbuckets returns 8 buckets, the last one partial. More than 1,000 buckets is-32602.
| Error | When |
|---|---|
-12024 | The account has no Builder ID from enableBuilder (not a Builder) |
-20003 | Service unavailable. Retry with backoff |
While the volume history can't be read, the call still answers, with the Builder ID and terms and stats: null.
atlas.getBuilderPayouts
atlas.getBuilderPayoutsHTTP/account/rpc authThe Builder's tier and its Builder Fee and Builder Rebate payouts, newest period first. Send Authorization: Bearer <accessToken> from auth.login, with a token that covers the Builder's Main.
accountAddressAccountAddressrequired- The Builder's Main account.
limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page.
Result: BuilderPayoutPage
BuilderPayoutPage
tierBuilderTierrequiredFrom the latest tier snapshot: the higher of the volume tier (14-day Builder Volume) and the staking tier (ZRO staked across the Builder's wallet). Until a snapshot includes the Builder, every field but
nextTierisnull, andnextTieris the lowest tier's entry.›Show 7 child fieldsHide child fields
tierstring | nullrequired- Builder Tier name, such as
B0(Tier 1).nullbeforesnapshotAt, or below both the lowest volume and the lowest staking threshold. rebatePctDecimalString | nullrequired- The tier's Builder Rebate percentage.
qualifiedByenum | nullrequiredvolumeorstaking: the path that gave the tier.volumewhen both paths reach it.nullwithout a tier.stakedZroDecimalString | nullrequired- ZRO staked across the Builder's wallet at
snapshotAt. builderVolume14dDecimalString | nullrequired- 14-day Builder Volume at
snapshotAt. nextTierobject | nullrequired- The next tier, as a tier table entry:
tier, itsrebatePct, and thebuilderVolume14dorstakedZrothat reaches it. snapshotAtTimestampMs | nullrequired- The snapshot's time.
rowsBuilderPayout[]requiredOne per kind and asset per payout period, newest first. Several rows can share a kind and period.
›Show 9 child fieldsHide child fields
payoutIdstringrequired- Payout id.
kindenumrequiredbuilder_feeorbuilder_rebate.periodStartTimestampMsrequired- Inclusive start of the payout period (UTC).
periodEndTimestampMsrequired- Exclusive end of the period.
paidAtTimestampMsrequired- When it was credited.
assetstringrequired- Payout asset symbol.
assetIdintegerrequired- Payout asset id.
amountDecimalStringrequired- Amount paid.
creditedAccountAddressAccountAddressrequired- The account credited.
nextCursorstring | nullrequired- Pass back as
cursor. The cursor includes the payout asset. nextPayoutAtTimestampMs | nullrequired- When the next payout is scheduled.
nullwhen none is.
The tier figures come from the published tier table. Until one is published the call is -20003; there are no built-in thresholds. The rows list payouts that have been paid: a scheduled payout appears only once it is credited. For the payout schedule and rules, see Payouts.
atlas.getBuilderUsers
atlas.getBuilderUsersHTTP/account/rpc authThe Builder's users for one payout period: every wallet stamped with the Builder ID, and every other wallet that traded through the Builder's app in the period. Needs the same bearer token as atlas.getBuilderPayouts.
accountAddressAccountAddressrequired- The Builder's Main account.
periodStartTimestampMs- A closed period's
periodStart, fromatlas.getBuilderPayouts. Omit for the current, open period. limitinteger- 1 to 500. Default 100.
cursorstringnextCursorfrom the previous page, with the sameperiodStart.
Result: BuilderUserPage
BuilderUserPage
periodStartTimestampMsrequired- Inclusive start of the period.
periodEndTimestampMsrequired- Exclusive end of the period.
rowsBuilderUser[]requiredOne per wallet, by
walletAddressascending. A closed period's rows split its payouts by wallet.›Show 6 child fieldsHide child fields
walletAddressAccountAddressrequired- The wallet, by its Main address.
stampedAtTimestampMs- When the wallet was stamped with this Builder ID. Absent when it is listed only for trading through the app.
builderVolumeDecimalStringrequired- The wallet's paid flow in the period, on any app.
"0"when not stamped. appVolumeDecimalStringrequired- Its flow through orders carrying the Builder ID.
builderFeeDecimalStringrequired- Builder Fee charged on its App Volume fills.
builderRebateDecimalString | nullrequired- Builder Rebate on its Builder Volume.
nullwhile the period is open.
nextCursorstring | nullrequired- Pass back as
cursor. asOfTimestampMsrequired- Fills up to this time are counted. A closed period's rows are final.
Errors (both private reads)
| Error | When |
|---|---|
-32602 | Invalid params |
-20002 | No access token |
-12019, -12020 | The token has expired or is invalid. Log in again |
-12009 | The token doesn't cover the Builder's Main |
-12024 | The account is not a Builder |
-20014 | Restricted region |
-20003 | Payout or volume history, or the tier table, can't be read. Retry with backoff |
Opening an account
There is no registration call. Your Main's address is your owner key's address, and deposits to it before it holds an account wait there: atlas.getBalances and atlas.getAccountState show them as cross rows, with walletState pending.
The owner key's first signed command opens the wallet and its Main, and enables trading: see Open an account and enable trading. Afterwards walletState is active.
A sub-account opens with a signed createSubAccount. Read its address from atlas.getAccounts once it is open.
Service
These diagnostics take no params: omit params or send {}.
atlas.getVersion
atlas.getVersionHTTP/seq/rpc, /account/rpc, /market/rpcThe build that answered, the deployment's ATLAS chain id, and the venue's Typed transaction signing domain. Use it to read the chain id and domain to sign with. /seq/tx and the WebSocket paths don't serve it.
atlas.getVersionHTTP POSTcurl -s https://<api-host>/seq/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getVersion","params":{}}'Press Send to see the response.VersionInfo
versionstringrequired- Release version. A build identifier.
gitShastringrequired- A build identifier.
commitTimestringrequired- A build identifier, RFC 3339.
buildTimestringrequired- A build identifier, RFC 3339.
signingSigningInforequiredThe venue's signing metadata.
›Show 2 child fieldsHide child fields
chainIdintegerrequired- The deployment's ATLAS zone id (
33003): thechainIdevery transaction and signed message carries as its first signed field. A transaction signed for another chain id is refused. transactionDomainobjectrequired- The EIP-712 domain for Typed transactions, without its
chainId:name,versionandsalt(keccak256("atlas"), the same in every deployment). The domain'schainIdis the chain your wallet signs at, thedomainChainId, not the ATLASchainIdabove. An Opaque signature commits to the samesalt. See Typed signing.
version, gitSha, commitTime and buildTime identify the build: quote them when you contact support. Any of them can be unknown.
atlas.getTime
atlas.getTimeHTTP/seq/rpc, /market/rpcThe answering server's clock, as a JSON integer of Unix milliseconds. Use it to sign a nonce whose millisecond falls inside the venue's window when you have no other source of server time.
atlas.getTimeHTTP POSTcurl -s https://<api-host>/seq/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTime","params":{}}'Press Send to see the response.Don't cache it: estimate your clock offset from your send and receive times. The TradingView /udf/time endpoint returns seconds instead.