Account & Orders
Query positions, margin summary, open orders, order status, fills, funding payments, and rate limits.
/infoPositions & Margin (clearinghouseState)
Retrieve a user's perpetuals margin summary, withdrawable balance, and all open positions.
{
"type": "clearinghouseState",
"user": "0x0000000000000000000000000000000000000000"
}Open Orders (openOrders / frontendOpenOrders)
Retrieve all resting orders for an account. Use frontendOpenOrders to include trigger prices, TP/SL flags, reduceOnly, and tif.
{
"type": "openOrders",
"user": "0x0000000000000000000000000000000000000000"
}side:"B"for bid (buy),"A"for ask (sell).
Order Status (orderStatus)
Look up a single order by numeric oid or 128-bit hex cloid.
{
"type": "orderStatus",
"user": "0x0000000000000000000000000000000000000000",
"oid": 123456789
}- Possible order statuses:
"open","filled","canceled","triggered","rejected", or top-level"unknownOid".
Historical Orders (historicalOrders)
Retrieve up to 2,000 most recent closed, filled, and canceled orders for an account (includes initial price and cumulative VWAP avgPx).
{
"type": "historicalOrders",
"user": "0x0000000000000000000000000000000000000000"
}Trade Fills (userFills / userFillsByTime)
Retrieve up to 2,000 executed trade fills per call for an account (excludes TWAP slice fills; use userTwapSliceFills for TWAP slices).
{
"type": "userFillsByTime",
"user": "0x0000000000000000000000000000000000000000",
"startTime": 1700000000000,
"aggregateByTime": true
}- Omit
startTimeand use"type": "userFills"to fetch the latest fills without a time window.
Active Asset Data (activeAssetData)
Retrieve current leverage setting, max trade sizes, and available margin for a specific market.
{
"type": "activeAssetData",
"user": "0x0000000000000000000000000000000000000000",
"coin": "BTC"
}Funding Payments (userFunding)
Retrieve hourly funding payments credited or debited to an account.
{
"type": "userFunding",
"user": "0x0000000000000000000000000000000000000000",
"startTime": 1700000000000
}Ledger Updates (userNonFundingLedgerUpdates)
Retrieve non-funding balance changes including deposits, withdrawals, internal transfers, and vault actions.
{
"type": "userNonFundingLedgerUpdates",
"user": "0x0000000000000000000000000000000000000000",
"startTime": 1700000000000
}User Fees (userFees)
Retrieve an account's active maker/taker fee rates, 30-day rolling weighted volume (2× spot), VIP/MM schedule, and referral discounts. See Fees, VIP & Rebates for the complete tier tables.
{
"type": "userFees",
"user": "0x0000000000000000000000000000000000000000"
}On-Chain Rate Limit (userRateLimit)
Check cumulative trading volume and remaining on-chain request budget for an account.
{
"type": "userRateLimit",
"user": "0x0000000000000000000000000000000000000000"
}Authorized API Wallets (extraAgents)
List API wallets (Agents) currently authorized to sign trading actions for an account.
{
"type": "extraAgents",
"user": "0x0000000000000000000000000000000000000000"
}