Account
One account's orders, fills, positions, balances, triggers, backstop transfers and unified activity feed. {account} is a 20-byte 0x address.
The account's orders with their fills, newest first by (deadline, nonce, order_id). /clob/fills/{account} and the activity fill entries are the per-fill record that also carries the fee and running totals. Backstop position transfers appear as terminal rows with kind: backstop_transfer.
Two paging modes:
Cursor (default): pass
next_cursorback ascursor;nullon the last page.untilbounds the first page.Offset: set
offset.cursoranduntilare then ignored andnext_cursorisnull; page withoffset += limitwhileoffset < total_count.
Cache-Control: public, max-age=31536000, immutable when the page's upper bound (cursor or until) has been reached by solution time and every returned order is terminal, otherwise no-store. Offset pages are no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$The lowest tick deadline accepted, in microseconds — typically the highest timestamp
(or solution_now) already held. The node answers once the state behind the route has
reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT).
Omitted means answer now.
Upper bound on order deadline, unix seconds. Ignored when cursor or offset is set.
Page size, capped at 500.
500next_cursor from the previous page, "{deadline_us}:{nonce}:{order_id_hex}". Malformed is a 400.
Skip this many newest-first rows. Switches to offset mode.
32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$pending: submitted, not yet in the bookactive: resting in the bookfilled: completely filledexpired: TTL passedcanceled: canceled by the ownermargin_canceled: removed by the engine because the owner's margin was exhaustedself_trade_canceled: removed by the engine because it was about to fill against an order of the same ownerpost_only_refused: apost_onlyorder removed because it would have taken liquidity in the batch that admitted itinvalid: rejected at execution and never entered the book; seeinvalid_reason
Everything except pending and active is terminal.
Order page
Cursor for the next page. null on the last page and in offset mode.
Orders matching the filters, across all pages.
Unix time in microseconds, as a JSON number
1704153600000000Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/orders/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"orders": [
{
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"market_type": "spot",
"kind": "user_signed",
"order_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
"bidder": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
"nonce": 1,
"order_type": "limit",
"status": "pending",
"side": "buy",
"price": "0x6f05b59d3b200000",
"initial_size": "-1000000000000000000",
"filled_base_amount": "0x6f05b59d3b200000",
"filled_quote_amount": "0x6f05b59d3b200000",
"fee": "0x6f05b59d3b200000",
"deadline": "1704153600000000",
"end": 1704153600000000,
"included_batch": 1704153600000000,
"invalid_reason": "text",
"effective_price": "0x6f05b59d3b200000",
"fills": [
{
"base_amount": "0x6f05b59d3b200000",
"quote_amount": "0x6f05b59d3b200000",
"timestamp": 1704153600000000,
"price": "0x6f05b59d3b200000"
}
],
"reduce_only": true,
"ioc": true,
"post_only": true,
"direction": "buy",
"realized_pnl": "-1000000000000000000",
"grouping": "none",
"trigger_type": "take_profit"
}
],
"next_cursor": "text",
"total_count": 1,
"solution_now": 1704153600000000
}The account's fills in the window [from_us, to_us), newest first. Capped at 500 rows; narrow the window to read further back.
An orderbook id that names no book returns no rows.
Cache-Control: no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Unix time in microseconds, as a decimal string
1704153600000000Pattern: ^[0-9]+$Unix time in microseconds, as a decimal string
1704153600000000Pattern: ^[0-9]+$Maximum rows, clamped to [1, 500].
500Fills
Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/fills/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"fills": [
{
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"base_token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
"quote_token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
"order_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"order_type": "limit",
"initial_size": "-1000000000000000000",
"fee": "0x6f05b59d3b200000",
"base_amount": "0x6f05b59d3b200000",
"quote_amount": "0x6f05b59d3b200000",
"timestamp": 1704153600000000,
"price": "0x6f05b59d3b200000"
}
]
}The account's live perp positions and account-level aggregates, read from the execution engine. Spot holdings are on /clob/balances/{account}. An account the node has never seen returns an empty list and zero aggregates.
Cache-Control: no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$The lowest tick deadline accepted, in microseconds — typically the highest timestamp
(or solution_now) already held. The node answers once the state behind the route has
reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT).
Omitted means answer now.
Positions
Signed 256-bit integer, decimal string
-1000000000000000000Pattern: ^-?[0-9]+$Lifetime, spot and perp.
-1000000000000000000Pattern: ^-?[0-9]+$Cash adjusted for unsettled funding, plus perp unrealized PnL.
-1000000000000000000Pattern: ^-?[0-9]+$perps_equity plus the mark value of spot holdings and quote escrowed in resting spot buys.
-1000000000000000000Pattern: ^-?[0-9]+$Signed 256-bit integer, decimal string
-1000000000000000000Pattern: ^-?[0-9]+$What a withdrawal or transfer can take now: max(0, equity − max(initial_margin, transfer_margin_ratio × notional)), where notional is Σ |size| × mark and transfer_margin_ratio is a network parameter (10% by default). Equity counts unrealized PnL.
0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$Native collateral deposited minus withdrawn. Lifetime PnL is account_value − net_deposits.
-1000000000000000000Pattern: ^-?[0-9]+$Deadline of the last executed tick on the answering node, read together with the state above; 0 before the first tick. Comparable across nodes.
1704153600000000Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/positions/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"positions": [
{
"kind": "perp",
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"base_symbol": "text",
"quote_symbol": "text",
"side": "long",
"size": "-1000000000000000000",
"notional": "0x6f05b59d3b200000",
"entry_price": "0x6f05b59d3b200000",
"mark_price": "0x6f05b59d3b200000",
"margin": "0x6f05b59d3b200000",
"leverage": "0x6f05b59d3b200000",
"funding_accrued": "-1000000000000000000",
"funding_basis": "-1000000000000000000",
"cost_basis": "-1000000000000000000",
"entry_funding": "-1000000000000000000",
"liquidation_price": "0x6f05b59d3b200000",
"unrealized_pnl": "-1000000000000000000",
"realized_pnl": "-1000000000000000000",
"stop_loss": "text",
"take_profit": "text"
}
],
"total_unrealized_pnl": "-1000000000000000000",
"total_realized_pnl": "-1000000000000000000",
"perps_equity": "-1000000000000000000",
"account_value": "-1000000000000000000",
"cash": "-1000000000000000000",
"withdrawable_cash": "0x6f05b59d3b200000",
"net_deposits": "-1000000000000000000",
"timestamp": 1704153600000000
}The account's live spot holdings and cash, read from the execution engine.
Cache-Control: no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$The lowest tick deadline accepted, in microseconds — typically the highest timestamp
(or solution_now) already held. The node answers once the state behind the route has
reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT).
Omitted means answer now.
Balances
Signed 256-bit integer, decimal string
-1000000000000000000Pattern: ^-?[0-9]+$Unsigned 256-bit integer, 0x hex
0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$Signed 256-bit integer, decimal string
-1000000000000000000Pattern: ^-?[0-9]+$Deadline of the last executed tick on the answering node, read together with the state above; 0 before the first tick. Comparable across nodes.
1704153600000000Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/balances/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"balances": [
{
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"base_symbol": "text",
"quote_symbol": "text",
"balance": "0x6f05b59d3b200000",
"free_balance": "0x6f05b59d3b200000",
"locked_balance": "0x6f05b59d3b200000",
"cost_basis": "0x6f05b59d3b200000",
"mark_price": "0x6f05b59d3b200000",
"unrealized_pnl": "-1000000000000000000",
"realized_pnl": "-1000000000000000000"
}
],
"cash": "-1000000000000000000",
"withdrawable_cash": "0x6f05b59d3b200000",
"net_deposits": "-1000000000000000000",
"timestamp": 1704153600000000
}The account's armed TP/SL triggers, read from the execution engine, sorted by (orderbook_id, order_id). Pass next_cursor back as cursor for the next page.
Cache-Control: no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$The lowest tick deadline accepted, in microseconds — typically the highest timestamp
(or solution_now) already held. The node answers once the state behind the route has
reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT).
Omitted means answer now.
32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size, clamped to [1, 200].
200next_cursor from the previous page, "{orderbook_id}:{order_id}" (both 0x hex). Malformed is a 400.
Trigger page
Triggers matching the filter, before paging.
Cursor for the next page. null on the last page.
Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/triggers/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"triggers": [
{
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"order_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
"bidder": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
"nonce": 1,
"size": "-1000000000000000000",
"limit_price": "0x6f05b59d3b200000",
"trigger_price": "0x6f05b59d3b200000",
"trigger_type": "take_profit",
"grouping": "none",
"reduce_only": true,
"ioc": true,
"deadline": "1704153600000000",
"end": 1
}
],
"total_count": 1,
"next_cursor": "text"
}The account's backstop sweeps as raw events, newest first, with the cash and equity detail the orders feed omits.
With no query parameters the route returns the whole list, capped at 500, and no next_cursor. Setting any of orderbook, limit or cursor switches to paged reads of at most 200 rows; pass next_cursor back as cursor.
An orderbook id that names no book returns no rows.
Cache-Control: no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size, clamped to [1, 200].
200next_cursor from the previous page, "{ts}:{id}". Malformed is a 400.
Backstop transfers
Cursor for the next page. Omitted on the last page and when unpaged.
Unix time in microseconds, as a JSON number
1704153600000000Malformed path or query parameter. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/backstop-transfers/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"backstop_transfers": [
{
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"size": "text",
"cash": "text",
"mark_price": "text",
"equity": "text",
"realized_pnl": "text",
"timestamp_us": 1704153600000000
}
],
"total_count": 1,
"next_cursor": "text",
"solution_now": 1704153600000000
}Everything that happened to the account, as an ActivityFrame: a map from batch deadline to that batch's entries. Entries are tagged by k (ActivityEntry). Within a batch, entries are ordered by kind (order, fill, modify, termination, backstop, bridge_transfer, transfer, modify_reject, cancel_reject), then by book ascending, then in engine order.
Pages are newest first and hold whole batches. Batches are added while the entry count stays within limit; the newest batch in the window is always served, even when it alone exceeds limit. Pass next back as to for the older page.
An order entry, at the batch that admitted it, is the order as /clob/orders/{account} serves it: its current status, totals and fills, so it needs no folding of the later entries. A fill, modify, termination, modify_reject or cancel_reject names its order by id and book; one of an order placed before the window is not hydrated.
Seed from this route, then subscribe to the pod_activity websocket channel with since = solution_now.
Cache-Control: public, max-age=31536000, immutable when to <= solution_now and every order on the page is terminal, otherwise no-store.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Unix time in microseconds, as a decimal string
1704153600000000Pattern: ^[0-9]+$Unix time in microseconds, as a decimal string
1704153600000000Pattern: ^[0-9]+$The lowest tick deadline accepted, in microseconds — typically the highest timestamp
(or solution_now) already held. The node answers once the state behind the route has
reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT).
Omitted means answer now.
Entries per page after the type filter, clamped to [1, 2000]. A page can exceed it by its newest batch.
500Comma-separated kinds to include: order, fill, modify, termination,
backstop, bridge_transfer, transfer, modify_reject, cancel_reject. Defaults to all. An unknown or empty
name is a 400 (invalid activity_types).
order,fillActivity page
The oldest served batch minus 1µs when older history may exist, otherwise null. Pass it as to.
^[0-9]+$Unix time in microseconds, as a JSON number
1704153600000000Malformed path or query parameter. Plain-text reason.
from > to. Plain-text reason.
The indexer or execution engine read failed. Body clob indexer unavailable, with Cache-Control: no-store. When the request set timestamp, a 503 may instead be the NodeBehind answer (JSON body, Retry-After: 1).
GET /v1/clob/activity/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
"activity": {
"1704153600000000": [
{
"k": "order",
"orderbook_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
"market_type": "spot",
"kind": "user_signed",
"order_id": "0x9a8b7c6d5e4f30211a2b3c4d5e6f70819a8b7c6d5e4f30211a2b3c4d5e6f7081",
"tx_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"bidder": "0x1234567890abcdef1234567890abcdef12345678",
"nonce": 42,
"order_type": "limit",
"status": "filled",
"side": "sell",
"price": "0x4563918244f40000",
"initial_size": "-1000000000000000000",
"filled_base_amount": "0xde0b6b3a7640000",
"filled_quote_amount": "0x4563918244f40000",
"fee": "0x0",
"deadline": "1704153600000000",
"end": 18446744073709552000,
"included_batch": 1704153600000000,
"effective_price": "0x4563918244f40000",
"fills": [
{
"base_amount": "0xde0b6b3a7640000",
"quote_amount": "0x4563918244f40000",
"timestamp": 1704153600000000,
"price": "0x4563918244f40000"
}
],
"direction": "sell"
},
{
"k": "fill",
"id": "0x9a8b7c6d5e4f30211a2b3c4d5e6f70819a8b7c6d5e4f30211a2b3c4d5e6f7081",
"book": "0x0000000000000000000000000000000000000000000000000000000000000001",
"b": "1000000000000000000",
"q": "5000000000000000000",
"tb": "1000000000000000000",
"tq": "5000000000000000000",
"tf": "0",
"f": "0",
"st": "filled"
}
],
"1704150000000000": [
{
"k": "bridge_transfer",
"tx": "0x51d20000000000000000000000000000000000000000000000000000000000bb",
"idx": 0,
"tok": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"amt": "1000000000000000000000"
}
]
},
"next": "1704149999999999",
"solution_now": 1704153600100000
}Last updated

