API overview
Every ATLAS wire surface at a glance, with the transport, path, and auth you need for each.
On this page
ATLAS speaks JSON-RPC 2.0 over HTTP and WebSocket. Market data and account reads are plain JSON-RPC calls, every market is named by its numeric marketId, and every account by its 0x address. Orders and every other write are signed transactions, sent over HTTP or an optional authenticated WebSocket. Every precision-sensitive number travels as a string.
- Protocol
- JSON-RPC 2.0 over HTTP and WebSocket
- Method namespace
atlas.*requests,auth.*sign-in and sessions,stream.*push- Numbers
- Decimal strings, never floats
- Order writes
POST /seq/txor/seq/ws, one signed envelope per request- Stream recovery
- Account streams resume from
afterReportNo. Market streams resubscribe and start from a snapshot
Hosts and API key
HTTP paths are relative to the API host (<api-host>) and WebSocket paths to the WebSocket host (<ws-host>):
| Network | HTTP (<api-host>) | WebSocket (<ws-host>) |
|---|---|---|
| Mainnet | https://api.atlas.layerzero.network | wss://ws.atlas.layerzero.network |
For example, market data is POST https://api.atlas.layerzero.network/market/rpc.
Every request needs your X-Api-Key header on the HTTP request or the WebSocket upgrade, except /zone-rpc; the Auth column under Surfaces is what you need on top of it. To get a key, ask your ATLAS contact.
A first call
Market data needs no signature. This asks for the top three levels of the ZRO/USDT spot book, market 1. Press Send to try it.
atlas.getOrderBookHTTP POSTcurl -s https://<api-host>/market/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"atlas.getOrderBook","params":{"marketId":1,"depth":3}}'Press Send to see the response.Transports
- HTTP JSON-RPC for reads and writes: one
POSTcarries one request, and the response body is its answer. Reads have no side effects, so retry them freely. - WebSocket JSON-RPC for live data: subscribe on
/market/wsfor market streams and on/account/wsfor an account's orders, fills and balances. Subscriptions end with the connection. See Streams. - Trading writes go to
POST /seq/tx, or optionally over the/seq/wsWebSocket, which takes the same signed writes on one connection. See Trading. - Auth is per path: market data and most reads need only your API key, every write carries a signed envelope, and a few private reads need a session. The Surfaces table lists each.
- Numbers travel as decimal strings and times as Unix milliseconds. See Conventions.
- Rate limits apply per request and per subscription. See Rate limits.
Surfaces
| Surface | Transport | Path | Auth |
|---|---|---|---|
| Market data RPC | HTTP JSON-RPC | POST /market/rpc | None |
| Public streams | WebSocket JSON-RPC | GET /market/ws | None |
| Account and order reads, HTTP sessions | HTTP JSON-RPC | POST /account/rpc | None, except a bearer token on the few private reads |
| Account streams | WebSocket JSON-RPC | GET /account/ws | None (sign-in optional) |
| Signed writes | HTTP JSON-RPC | POST /seq/tx | A signed envelope per write: every command, onboarding and signed messages |
| Trading gateway (optional) | WebSocket JSON-RPC | GET /seq/ws | Signed handshake, then the same signed writes as /seq/tx |
| Advanced-order queries | HTTP JSON-RPC | POST /oms/v1/queries | None for atlas.getOmsNonce, the last advanced-order nonce a signer spent |
| Diagnostics | HTTP JSON-RPC | POST /seq/rpc | None. atlas.getVersion and atlas.getTime only |
| TradingView charting (UDF) | REST GET | GET /market/udf/* | None. TradingView's stock datafeed can't send the API key, so serve UDF from your backend |
| Wallet network | HTTP JSON-RPC | POST /zone-rpc | None, not even the API key. Lets a wallet add the Atlas network (chain ID 33003). Not for trading or balances. See Add the network to a wallet |
Every account is named by its address, 0x + 40 hex. There is no registration call: a deposit waits at your address, and your key's first signature opens a wallet and its Main account there. See Open an account and enable trading.
Namespaces
| Prefix | Direction | What it covers |
|---|---|---|
atlas. | Client → server | Market data, trading writes, account and order reads, subscription control (atlas.subscribe, atlas.unsubscribe) |
auth. | Client → server | Sign-in and sessions: auth.challenge, then auth.signIn (WebSocket) or auth.login (HTTP), plus auth.refresh, auth.logout, auth.createHandoff and auth.redeemHandoff |
stream. | Server → client | Push notifications for a subscription, for example stream.trades, stream.orders, stream.closed |
Method catalog
| Method | Group | Transport | Summary |
|---|---|---|---|
atlas.getSymbols | Market data | HTTP | Markets and their trading parameters |
atlas.getAssets | Market data | HTTP | Every asset id, symbol and decimals |
atlas.getOrderBook | Market data | HTTP | Order book snapshot |
atlas.getTicker, atlas.getTickers | Market data | HTTP | 24h ticker, with mark, index and funding for perps |
atlas.getBBO | Market data | HTTP | Best bid and offer with sizes |
atlas.getTrades | Market data | HTTP | Recent public trades |
atlas.getCandles | Market data | HTTP | OHLCV candles |
atlas.getFundingRateHistory, atlas.getMarkPriceHistory, atlas.getIndexPriceHistory | Market data | HTTP | Funding, mark and index history |
atlas.getInterestRates, atlas.getInterestRateHistory | Market data | HTTP | Interest rates by asset, in basis points per session |
atlas.sendRawTransaction | Trading | HTTP (/seq/tx) or WS (/seq/ws) | Submit one signed envelope: orders, account controls, keys, wallet settings, funds, TP/SL and TWAP |
atlas.sendWalletReadyRequest, atlas.sendRawMessage | Onboarding | HTTP (/seq/tx) or WS (/seq/ws); becoming a builder is HTTP only | Enable Trading or become a builder with one owner signature; accept new terms |
atlas.getOrder, atlas.getOrderByClOrdId | Trading reads | HTTP | One order by venue id or by placement id |
atlas.getOpenOrders | Trading reads | HTTP | Open orders |
atlas.getOrderHistory | Trading reads | HTTP | Filled, cancelled, rejected and expired orders |
atlas.getFills | Trading reads | HTTP | Fills, with realized PnL |
atlas.getFundingHistory | Trading reads | HTTP | Booked funding payments |
atlas.getAdvancedOrders, atlas.getAdvancedOrder | Trading reads | HTTP | TP/SL and TWAP parents and their progress |
atlas.getTransactionReceipt, atlas.getTransactionByHash, atlas.getTransactions | Account | HTTP | Whether a transaction applied, what was signed, and recorded outcomes, by txId |
atlas.getBalances, atlas.getPositions, atlas.getAccountState | Account | HTTP | Balances, positions and account state |
atlas.getAccounts, atlas.getKeys, atlas.getSignerPolicy | Account | HTTP | A wallet's accounts, bound keys and signing policy |
atlas.getLedger, atlas.getPortfolioHistory, atlas.getTransfers | Account | HTTP | Ledger, portfolio history and transfers |
atlas.getTerms | Account | HTTP | Terms in force |
atlas.getBuilder, atlas.getBuilderUsers, atlas.getBuilderPayouts, atlas.getBuilderTiers | Account | HTTP | Builder data, payouts and the tier ladder |
atlas.getFeeTier, atlas.getStakingState | Account | HTTP | Fee tier and staking tier |
atlas.getPlatformStats | Market data | HTTP | Platform-wide volume, open interest and counts |
atlas.getVersion, atlas.getTime | Diagnostics | HTTP (/seq/rpc) | Build identity and signing domain; server clock |
auth.challenge, auth.signIn | Auth | WS (/account/ws) | Sign a connection in |
auth.login, auth.refresh, auth.logout | Auth | HTTP (/account/rpc) | HTTP sessions for private reads |
auth.createHandoff, auth.redeemHandoff | Auth | HTTP (/account/rpc) | Pass a read session to a related app without a new signature |
atlas.subscribe, atlas.unsubscribe | Streams | WS | Open or close one subscription |
Machine-readable specs
The whole API is also published as standard spec files, for code generation, mocking and import into API tools.
| Spec | Covers | Download | Open in |
|---|---|---|---|
| OpenRPC 1.3.2 | The JSON-RPC methods (atlas.*) | YAML · JSON | OpenRPC Playground |
| AsyncAPI 3.1 | The WebSocket streams (stream.*) | YAML · JSON | AsyncAPI Studio |
| OpenAPI 3.1 | The TradingView UDF REST endpoints | YAML · JSON | Swagger Editor, Postman |
The OpenRPC Playground accepts only JSON. Every request needs your X-Api-Key header.