Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Info API (Beta)

POST /info serves every read-only query — market metadata, balances, positions, orders, the book, fees, and history. Reads need no signature. The body's type field selects the query, and each type has its own page with a Try it panel.

{ "type": "l2Book", "coin": "4" }

coin is the instrument's numeric id as a string — the index from perpMeta, or an Outcome market's instrument_id from outcomeMeta. Outcome reads that take instrumentId / instrumentIds want it as an integer. Send the exact camelCase type shown on each page; accountAccessStatus requires a case-sensitive match. Every type goes to the same host, even those answered by the API service rather than the node — see Networks.

Request types

Shared

Reads that are not tied to one instrument type. clearinghouseState picks the sub-account with accountType (perp or outcome), and getMaxPositions takes a perp or an Outcome instrument. The history types are served from an index and can briefly lag the latest block; most are paged — see Paged history.

TypeUse it to
l2BookTake a one-off order-book snapshot for one instrument.
tradesSeed the public trade tape for one instrument with its latest 300 trades.
clearinghouseStateLoad the Positions panel: every position plus the margin summary, for the perp or outcome sub-account.
frontendOpenOrdersRender the Open Orders tab, including trigger and TP/SL fields. Outcome orders appear only with exchangeId: 1 or "all".
userFeesShow the maker / taker rate a user currently pays.
feeTierInfoRender the static fee-tier ladder (volume thresholds → rates).
feeTierRatesShow effective rates for an account type, including the user’s tier and referral discount.
builderStateRead a builder’s on-chain claimable balance and fee eligibility before claimBuilderRewards.
referralRender the Referral page: referrer, rewards, referrer stage.
userRolePick the referral view to render: regular user, referrer, or affiliate.
userClaimRewardsRender the referral reward claim history.
agentOwnerCheck whether an agent key is still authorized, and for which account.
approvedAgentsList the agent keys an account has approved (e.g. an API-key management page).
getLatestBlockNumberCheck node liveness or read the current block height.
epochHistoryMap block numbers to consensus epochs.
exchangeRatesConvert USDC amounts to USD or a local fiat currency for display.
tagsLabel instruments with tag names; resolves the tagIds on webData2 asset rows.
marketTagsBuild the markets menu: top-level tabs, their sub-tags, and which instruments sit under each.
userOverviewFill a portfolio or vault performance card: PnL, ROE, volume, max drawdown, equity over a period.
candleSnapshotSeed a candlestick chart; then keep the last bar live with candle.
historicalOrdersRender the Order History tab (limit / market orders).
historicalTpslOrdersRender the TP/SL tab of Order History.
historicalTriggerOrdersRender the Trigger tab of Order History.
twapHistoryRender the TWAP tab of Order History (finished or cancelled TWAPs).
orderDetailsOpen an order-detail view from one orderId.
userFillsRender Trade History / reconcile executions (maker or taker fills).
userTwapSliceFillsList the individual child fills of a user’s TWAP orders.
userFundingsRender Funding History (collected and paid settlements).
userNonFundingLedgerUpdatesRender the Deposits & Withdrawals / transfer ledger.
getMaxPositionsCompute the max buy / sell size at a price the user typed into the order ticket.

Account setup

Query a main account's bound referral code and channel trading access with accountAccessStatus. This is a public POST /info query; it does not require a signature or Token. Trading access does not guarantee that an order passes every validation.

TypeUse it to
accountAccessStatusQuery a main account’s bound referral code and trading access on a channel.
approvedBuildersList every builder a user has approved and its fee cap (e.g. a builder-approval settings page).
maxBuilderFeeCheck that a user has approved your builder, and at what cap, before sending orders with a builder fee.
approveAgentEligibilityDecide whether to show “Enable trading” or a deposit prompt before approveAgent.

Deposits & withdrawals

Served by the API service, not the node.

TypeUse it to
settingsLook up the Bridge2 contract address before a native Arbitrum USDC deposit.
depositWithPermitDeposit Arbitrum USDC for a user who holds no ETH for gas (signs an EIP-2612 permit).
dayTotalWithdrawShow how much a user has already withdrawn today on the withdraw form.
sendTokenFeeShow the activation fee on a send or cross-chain withdraw form before signing tokenSend.

Builder

Analytics for a builder's own dashboard. Pass the builder wallet address as user.

TypeUse it to
builderMeOverviewHeadline numbers for a builder dashboard: users, volume, fees, rank.
builderMeDailySeriesPlot a builder’s daily fees or user count.
builderMeShareBreak a builder’s fees down by trading user or by instrument.
builderMeEarnedList a builder’s earnings, one row per order.
builderMeClaimedList a builder’s past reward claims.
builderMeClaimableShow claimable vs. lifetime earned / claimed on a builder dashboard.

Vaults

Vault profiles and a user's vault holdings. Deposit and withdraw with vaultTransfer.

TypeUse it to
vaultDetailsRender a vault page: profile, TVL, lock-up, depositors, and one user’s withdrawable amount.
uservaultequitiesList the vaults a user holds, with current equity and lock-up end.

Perpetuals

Market metadata, positions, margin, and the order types only perpetuals accept (triggers and TP/SL).

TypeUse it to
perpMetaResolve perp symbols to the numeric coin id every other call takes. Cache at startup.
perpMetaDetailShow margin tiers and max leverage for one base asset (BTC, not BTC-USDC).
marketTickerFill a perp market header on first load: last, mark, oracle, funding, 24h change and volume.
activeAssetCtxShow a perp market header: mark, oracle, funding rate, open interest.
webData2Fill a markets table with 24h stats for every instrument, plus the user’s open orders, in one call.
perpClearinghouseStateShow token balances held in the perp sub-account.
activeAssetDataFill the order ticket: the user’s leverage, max tradeable size, and available margin on one instrument.
triggerOrdersList a user’s pending trigger (stop) orders, with any TP/SL children.
tpslOrdersList all of a user’s pending take-profit / stop-loss orders.
positionTpslOrdersShow the TP/SL pairs bound to one open position (position row → its TP/SL).
tpslOrderPositionResolve a TP/SL child order id back to the position it protects (order → position).
getLiquidationPricesPreview the estimated liquidation price before the user submits an order.
preCheckIsolatedMarginAdjustFill the Adjust Margin dialog: max add / remove and the new liquidation price before updateIsolatedMargin.

Outcome

Event and market metadata, market context, positions, and open orders, plus the timeline and price-window data of recurring crypto markets. The metadata, context, timeline, price, and probability types are API-service aggregations. For one market's book, use the shared l2Book; for account value and margin, clearinghouseState with accountType: "outcome".

TypeUse it to
outcomeMetaBuild the Outcome discovery feed or an event page: events, nested markets, live prices, settlement state.
outcomeNavTagsBuild the Outcome category bar and tag menu; each node carries the category / tag to pass to outcomeMeta.
outcomeAssetCtxsFill 24h volume / price-change columns in an Outcome market grid.
outcomeSeriesTimelineRender the past / current / upcoming window strip of a recurring crypto Outcome series.
cryptoPriceShow the price-to-beat and settlement price of a crypto Outcome window.
cryptoPriceHistorySeed the underlying-asset price chart on a crypto Outcome market.
outcomeProbabilityBackfill a YES-probability chart; append live closes from candle.
outcomeMetaByInstrumentRead on-chain trading params (tick, fee curve, resolution status) for one Outcome instrument.
outcomeL2BookSnapshot the books of several Outcome instruments at once (e.g. every market of an event).
outcomePositionsList a user’s Outcome positions with event title and outcome names attached.
outcomeBalancesShow token balances held in the Outcome sub-account.
outcomeFrontendOpenOrdersRender resting Outcome orders with event title, slug, and outcome names attached.

Paged history

The order, fill, funding, and ledger history types share one paging scheme. candleSnapshot, orderDetails, and userTwapSliceFills do not use it.

Responsedata is { data, hasMore, total? }: the rows, whether more exist, and the total when known
Pagingoffset / limit — default 300, max 2000, newest first
Filtersuser, startTimeMs / endTimeMs, accountType, contract (all / active), coin, side
SideBuy / Sell on the request; responses use B / A