ResoMarket/Docs/Trading API

Trading API v1

HTTP and WebSocket protocol for automated trading and market making across ADI Mainnet and Polygon. USDC / pUSD · EIP-712 · HMAC.

Protocol v1Wallet-nativeADI Mainnet · Chain 36900Polygon · Chain 137USDC / pUSDEIP-712 + HMAC
Download JavaScript API demov0.1.2 · SHA-256 1920806fdb8c... · Node 20crypto: Previewsports: Previewbtc-3m: Preview

Preview means the API and offline demo are available, but the current release ZIP has not completed per-product runtime and real-funds closed-loop acceptance. Validate with a controlled wallet and the minimum amount before production funding.

Orders require an owner-wallet signature. Only a signed-in session with a managed owner signer may have one order server-signed; L2 credentials cannot sign orders or withdraw funds.

Market and account data

GET/api/markets | /api/markets/{id}ADI Sports discovery and detail
GET/api/crypto/markets | /api/crypto/markets/{id}/live | /quotePolymarket Crypto discovery, live data, and quote
GET/api/trading/markets*BTC 3m markets and protocol config
GET/api/trading/markets/activeActive OPEN / LOCKED / RESOLVING windows
GET/api/trading/markets/{marketId}/configVersioned signing, asset, tick, fee and settlement policy
GET/api/trading/markets/{marketId}/orderbook?outcome=UPAtomic bids/asks snapshot, sequence and bookHash
POST/api/trading/markets/orderbooksUp to 32 market/outcome scopes
GET/api/contract-products/btc-minute/markets?tenor=3mOpening reference price for each BTC window
GET/api/contract-products/btc-minute/priceCurrent aggregated BTC/USD spot price
GET/api/contract-products/btc-minute/price/historyThirty minutes of one-minute BTC/USD OHLC candles
GET/api/trading/account/snapshotConsistent balances, positions, open orders and account sequence
GET/api/trading/account/activityBusiness activity timeline
GET/api/trading/account/statementLedger statement with running balance
POST/api/trading/inventory/split | /inventory/mergeComplete-set inventory operations

Public wallet data

Wallet-only accounts expose local sanitized positions and activity at /{wallet} and through the public APIs below. product accepts all, sports, btc-3m, or crypto; limit is at most 100. Public responses exclude balances, funding history, internal user IDs, deposit wallets, credentials, token IDs, and provider order IDs.

GET/{wallet}Public wallet positions and activity page
GET/api/public/profiles/{wallet}/positionsPublic wallet-only positions
GET/api/public/profiles/{wallet}/activityPublic wallet-only fills and settlements

Pagination and rate limits

A list response nextCursor is opaque. When non-null, pass it unchanged to the same path with the same filters; never parse, modify, or reuse it across endpoints. Crypto market discovery uses limit + offset; endpoints that declare cursor use cursor pagination.

Code example
# cursor is opaque. Reuse nextCursor exactly; null means the last page.GET /api/public/profiles/{wallet}/activity?product=crypto&limit=50&cursor=<nextCursor>GET /api/trading/orders?limit=100&cursor=<nextCursor>

Fixed application limits

ScopeLimitCounter subject
POST /api/trading/auth/challenges60 / minutePer IP and owner wallet
POST /api/orders/manual60 / minuteTrading Account
POST /api/positions/close30 / minuteTrading Account
Funding assets / intent / status / confirmation60 / 40 / 90 / 90 per minuteTrading Account
Public positions / activity120 / minutePer IP and wallet