Skip to content

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
Method namespace
Numbers
Order writes
Stream recovery

Hosts and API key

HTTP paths are relative to the API host (<api-host>) and WebSocket paths to the WebSocket host (<ws-host>):

NetworkHTTP (<api-host>)WebSocket (<ws-host>)
Mainnethttps://api.atlas.layerzero.networkwss://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.

Try itatlas.getOrderBookHTTP POST
paramsedit me
curl -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}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.

Transports

  • HTTP JSON-RPC for reads and writes: one POST carries 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/ws for market streams and on /account/ws for 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/ws WebSocket, 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

SurfaceTransportPathAuth
Market data RPCHTTP JSON-RPCPOST /market/rpcNone
Public streamsWebSocket JSON-RPCGET /market/wsNone
Account and order reads, HTTP sessionsHTTP JSON-RPCPOST /account/rpcNone, except a bearer token on the few private reads
Account streamsWebSocket JSON-RPCGET /account/wsNone (sign-in optional)
Signed writesHTTP JSON-RPCPOST /seq/txA signed envelope per write: every command, onboarding and signed messages
Trading gateway (optional)WebSocket JSON-RPCGET /seq/wsSigned handshake, then the same signed writes as /seq/tx
Advanced-order queriesHTTP JSON-RPCPOST /oms/v1/queriesNone for atlas.getOmsNonce, the last advanced-order nonce a signer spent
DiagnosticsHTTP JSON-RPCPOST /seq/rpcNone. atlas.getVersion and atlas.getTime only
TradingView charting (UDF)REST GETGET /market/udf/*None. TradingView's stock datafeed can't send the API key, so serve UDF from your backend
Wallet networkHTTP JSON-RPCPOST /zone-rpcNone, 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

PrefixDirectionWhat it covers
atlas.Client → serverMarket data, trading writes, account and order reads, subscription control (atlas.subscribe, atlas.unsubscribe)
auth.Client → serverSign-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 → clientPush notifications for a subscription, for example stream.trades, stream.orders, stream.closed

Method catalog

MethodGroupTransportSummary
atlas.getSymbolsMarket dataHTTPMarkets and their trading parameters
atlas.getAssetsMarket dataHTTPEvery asset id, symbol and decimals
atlas.getOrderBookMarket dataHTTPOrder book snapshot
atlas.getTicker, atlas.getTickersMarket dataHTTP24h ticker, with mark, index and funding for perps
atlas.getBBOMarket dataHTTPBest bid and offer with sizes
atlas.getTradesMarket dataHTTPRecent public trades
atlas.getCandlesMarket dataHTTPOHLCV candles
atlas.getFundingRateHistory, atlas.getMarkPriceHistory, atlas.getIndexPriceHistoryMarket dataHTTPFunding, mark and index history
atlas.getInterestRates, atlas.getInterestRateHistoryMarket dataHTTPInterest rates by asset, in basis points per session
atlas.sendRawTransactionTradingHTTP (/seq/tx) or WS (/seq/ws)Submit one signed envelope: orders, account controls, keys, wallet settings, funds, TP/SL and TWAP
atlas.sendWalletReadyRequest, atlas.sendRawMessageOnboardingHTTP (/seq/tx) or WS (/seq/ws); becoming a builder is HTTP onlyEnable Trading or become a builder with one owner signature; accept new terms
atlas.getOrder, atlas.getOrderByClOrdIdTrading readsHTTPOne order by venue id or by placement id
atlas.getOpenOrdersTrading readsHTTPOpen orders
atlas.getOrderHistoryTrading readsHTTPFilled, cancelled, rejected and expired orders
atlas.getFillsTrading readsHTTPFills, with realized PnL
atlas.getFundingHistoryTrading readsHTTPBooked funding payments
atlas.getAdvancedOrders, atlas.getAdvancedOrderTrading readsHTTPTP/SL and TWAP parents and their progress
atlas.getTransactionReceipt, atlas.getTransactionByHash, atlas.getTransactionsAccountHTTPWhether a transaction applied, what was signed, and recorded outcomes, by txId
atlas.getBalances, atlas.getPositions, atlas.getAccountStateAccountHTTPBalances, positions and account state
atlas.getAccounts, atlas.getKeys, atlas.getSignerPolicyAccountHTTPA wallet's accounts, bound keys and signing policy
atlas.getLedger, atlas.getPortfolioHistory, atlas.getTransfersAccountHTTPLedger, portfolio history and transfers
atlas.getTermsAccountHTTPTerms in force
atlas.getBuilder, atlas.getBuilderUsers, atlas.getBuilderPayouts, atlas.getBuilderTiersAccountHTTPBuilder data, payouts and the tier ladder
atlas.getFeeTier, atlas.getStakingStateAccountHTTPFee tier and staking tier
atlas.getPlatformStatsMarket dataHTTPPlatform-wide volume, open interest and counts
atlas.getVersion, atlas.getTimeDiagnosticsHTTP (/seq/rpc)Build identity and signing domain; server clock
auth.challenge, auth.signInAuthWS (/account/ws)Sign a connection in
auth.login, auth.refresh, auth.logoutAuthHTTP (/account/rpc)HTTP sessions for private reads
auth.createHandoff, auth.redeemHandoffAuthHTTP (/account/rpc)Pass a read session to a related app without a new signature
atlas.subscribe, atlas.unsubscribeStreamsWSOpen 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.

SpecCoversDownloadOpen in
OpenRPC 1.3.2The JSON-RPC methods (atlas.*)YAML · JSONOpenRPC Playground
AsyncAPI 3.1The WebSocket streams (stream.*)YAML · JSONAsyncAPI Studio
OpenAPI 3.1The TradingView UDF REST endpointsYAML · JSONSwagger Editor, Postman

The OpenRPC Playground accepts only JSON. Every request needs your X-Api-Key header.

Where to go next