# ZMO API Documentation > Developer documentation for the ZMO API. Covers REST and WebSocket interfaces for Markets, Spot, Futures, Wallet, Earn, OTC, FIX, plus authentication, error handling, and client SDKs. OpenAPI 3.0.3 (REST) and AsyncAPI 2.6.0 (WebSocket) specs are the single source of truth and are served alongside the docs. Production hosts: `api.zmo.com` (REST) and `wss://ws.zmo.com` (WebSocket). Testnet hosts: `test-api.zmo.io` and `wss://test-ws.zmo.io`. ## Getting Started - [Quickstart](https://docs.zmo.com/quickstart): End-to-end first trade — create API keys, sign a request, place an order. - [Authentication](https://docs.zmo.com/authentication): HMAC-SHA384 signing scheme with multi-language examples. - [Error Codes](https://docs.zmo.com/error-codes): HTTP status codes and API-level error reference. - [WebSocket Guide](https://docs.zmo.com/websocket-guide): Connection lifecycle, authentication, reconnection strategy, and topic index. - [Order Lifecycle](https://docs.zmo.com/order-lifecycle): Order states, transitions, and event semantics across REST and WebSocket. - [Client SDKs](https://docs.zmo.com/sdks): Downloadable Python, JavaScript, Java SDKs generated from the OpenAPI specs. - [Auth Tester](https://docs.zmo.com/auth-tester): Interactive signature generator and live request tool. ## Markets REST base: `https://api.zmo.com` - [Overview](https://docs.zmo.com/markets/overview) - [Exchange Rule and Symbol Information](https://docs.zmo.com/markets/rest/get-exchange-info) - [Markets Information](https://docs.zmo.com/markets/rest/get-markets) - [Order Book](https://docs.zmo.com/markets/rest/get-orderbook) - [Recent Trades List](https://docs.zmo.com/markets/rest/get-recent-trades) - [Klines (OHLCV)](https://docs.zmo.com/markets/rest/get-klines) - [24hr Ticker Price Change](https://docs.zmo.com/markets/rest/get-24-hr-ticker) - [Price Ticker](https://docs.zmo.com/markets/rest/get-price-ticker) - [Ticker Indices](https://docs.zmo.com/markets/rest/get-indices-ticker) - [Ticker Order Book Level 1](https://docs.zmo.com/markets/rest/get-level-1-ticker) - [Funding Rate History](https://docs.zmo.com/markets/rest/get-funding-rate-history) - [Market Risk Limits](https://docs.zmo.com/markets/rest/get-market-risk-limits) ## Spot REST base: `https://api.zmo.com/spot` - [Overview](https://docs.zmo.com/spot/overview) - [Changelog](https://docs.zmo.com/spot/changelog) - [Create New Order](https://docs.zmo.com/spot/rest/create-order) - [Query Order](https://docs.zmo.com/spot/rest/get-order) - [Amend Order](https://docs.zmo.com/spot/rest/amend-order) - [Cancel Order](https://docs.zmo.com/spot/rest/cancel-order) - [Dead Man's Switch (Cancel All After)](https://docs.zmo.com/spot/rest/cancel-all-after) - [Query Open Orders](https://docs.zmo.com/spot/rest/get-open-orders) - [Query User Trades Fills](https://docs.zmo.com/spot/rest/get-user-trades-fills) - [Query Account Fees](https://docs.zmo.com/spot/rest/get-account-fees) WebSocket: `wss://ws.zmo.com/ws/spot` - [Ping / Pong](https://docs.zmo.com/spot/websocket/ping-pong) - [Subscription](https://docs.zmo.com/spot/websocket/subscription) - [WebSocket Authentication](https://docs.zmo.com/spot/websocket/websocket-authentication) - [OSS L1 Snapshot](https://docs.zmo.com/spot/websocket/oss-l1-snapshot) - [Orderbook Incremental Updates](https://docs.zmo.com/spot/websocket/orderbook-incremental-updates) - [Public Trade Fills](https://docs.zmo.com/spot/websocket/public-trade-fills) - [Notifications](https://docs.zmo.com/spot/websocket/notifications) - [User Trade Fills](https://docs.zmo.com/spot/websocket/user-trade-fills) ## Futures REST base: `https://api.zmo.com/futures` - [Overview](https://docs.zmo.com/futures/overview) - [Changelog](https://docs.zmo.com/futures/changelog) - [Create New Order](https://docs.zmo.com/futures/rest/create-order) - [Query Order](https://docs.zmo.com/futures/rest/get-order) - [Amend Order](https://docs.zmo.com/futures/rest/amend-order) - [Cancel Order](https://docs.zmo.com/futures/rest/cancel-order) - [Create New Algo Order](https://docs.zmo.com/futures/rest/create-algo-order) - [Dead Man's Switch (Cancel All After)](https://docs.zmo.com/futures/rest/cancel-all-after) - [Close Position](https://docs.zmo.com/futures/rest/close-position) - [Bind TP/SL](https://docs.zmo.com/futures/rest/bind-tp-sl) - [Get Risk Limit](https://docs.zmo.com/futures/rest/get-risk-limit) - [Set Risk Limit](https://docs.zmo.com/futures/rest/set-risk-limit) - [Get Leverage](https://docs.zmo.com/futures/rest/get-leverage) - [Set Leverage](https://docs.zmo.com/futures/rest/set-leverage) - [Change Contract Settlement Currency](https://docs.zmo.com/futures/rest/change-contract-settlement-currency) - [Query Position Mode](https://docs.zmo.com/futures/rest/get-position-mode) - [Change Position Mode](https://docs.zmo.com/futures/rest/change-position-mode) - [Query Open Orders](https://docs.zmo.com/futures/rest/get-open-orders) - [Query Trades Fills](https://docs.zmo.com/futures/rest/get-user-trades-fills) - [Query Position](https://docs.zmo.com/futures/rest/get-position) - [Query Account Fee](https://docs.zmo.com/futures/rest/get-account-fees) - [Query Margin Setting](https://docs.zmo.com/futures/rest/get-margin-setting) - [Query Wallet Balance](https://docs.zmo.com/futures/rest/get-wallet-balance) - [Query Wallet History](https://docs.zmo.com/futures/rest/get-wallet-history) - [Query Unified Wallet Margin](https://docs.zmo.com/futures/rest/get-unified-wallet-margin) - [Query Wallet Margin](https://docs.zmo.com/futures/rest/get-wallet-margin) - [Transfer Funds Between Futures Wallets](https://docs.zmo.com/futures/rest/transfer-funds-between-futures-wallets) - [Sub-Account Wallet Transfer](https://docs.zmo.com/futures/rest/sub-account-wallet-transfer) WebSocket: `wss://ws.zmo.com/ws/futures` - [Ping / Pong](https://docs.zmo.com/futures/websocket/ping-pong) - [Subscription](https://docs.zmo.com/futures/websocket/subscription) - [WebSocket Authentication](https://docs.zmo.com/futures/websocket/websocket-authentication) - [OSS L1 Snapshot](https://docs.zmo.com/futures/websocket/oss-l1-snapshot) - [Orderbook Incremental Updates](https://docs.zmo.com/futures/websocket/orderbook-incremental-updates) - [Public Trade Fills](https://docs.zmo.com/futures/websocket/public-trade-fills) - [Notifications](https://docs.zmo.com/futures/websocket/notifications) - [User Trade Fills](https://docs.zmo.com/futures/websocket/user-trade-fills) - [All Position](https://docs.zmo.com/futures/websocket/all-position) - [Positions](https://docs.zmo.com/futures/websocket/positions) ## Wallet REST base: `https://api.zmo.com` - [Overview](https://docs.zmo.com/wallet/overview) - [Changelog](https://docs.zmo.com/wallet/changelog) - [Assets](https://docs.zmo.com/wallet/rest/get-assets) - [Crypto List](https://docs.zmo.com/wallet/rest/get-crypto-list) - [Crypto Networks](https://docs.zmo.com/wallet/rest/get-crypto-networks) - [Get Asset Exchange Rate](https://docs.zmo.com/wallet/rest/get-asset-exchange-rate) - [User Wallet](https://docs.zmo.com/wallet/rest/get-user-assets) - [User Wallet History](https://docs.zmo.com/wallet/rest/get-user-wallet-history) - [Query Address](https://docs.zmo.com/wallet/rest/get-address) - [Create Address](https://docs.zmo.com/wallet/rest/create-address) - [Delete Address](https://docs.zmo.com/wallet/rest/delete-address) - [Withdraw](https://docs.zmo.com/wallet/rest/withdraw) - [Send To (transfer to user)](https://docs.zmo.com/wallet/rest/send-to) - [Convert](https://docs.zmo.com/wallet/rest/convert) ## Earn REST base: `https://api.zmo.com/spot` - [Overview](https://docs.zmo.com/earn/overview) - [Changelog](https://docs.zmo.com/earn/changelog) - [Query Investment Products](https://docs.zmo.com/earn/rest/get-investment-products) - [Deposit Investment](https://docs.zmo.com/earn/rest/deposit-investment) - [Renew Investment](https://docs.zmo.com/earn/rest/renew-investment) - [Redeem Investment](https://docs.zmo.com/earn/rest/redeem-investment) - [Query Investment Orders](https://docs.zmo.com/earn/rest/get-investment-orders) - [Query Investment History](https://docs.zmo.com/earn/rest/get-investment-history) ## OTC REST base: `https://api.zmo.com` - [Overview](https://docs.zmo.com/otc/overview) - [Changelog](https://docs.zmo.com/otc/changelog) - [Get OTC Markets](https://docs.zmo.com/otc/rest/get-otc-markets) - [Request Quote](https://docs.zmo.com/otc/rest/request-quote) - [Query Quote](https://docs.zmo.com/otc/rest/get-quote) - [Accept Quote](https://docs.zmo.com/otc/rest/accept-quote) WebSocket: `wss://ws.zmo.com/ws/otc` - [WebSocket Authentication](https://docs.zmo.com/otc/websocket/websocket-authentication) - [Quote Stream](https://docs.zmo.com/otc/websocket/quote-stream) ## FIX - [Overview](https://docs.zmo.com/fix/overview) - [Changelog](https://docs.zmo.com/fix/changelog) ## Optional - [Markets REST OpenAPI Spec](https://docs.zmo.com/specs/markets-rest.openapi.yaml) - [Spot REST OpenAPI Spec](https://docs.zmo.com/specs/spot-rest.openapi.yaml) - [Futures REST OpenAPI Spec](https://docs.zmo.com/specs/futures-rest.openapi.yaml) - [Wallet REST OpenAPI Spec](https://docs.zmo.com/specs/wallet-rest.openapi.yaml) - [Earn REST OpenAPI Spec](https://docs.zmo.com/specs/earn-rest.openapi.yaml) - [OTC REST OpenAPI Spec](https://docs.zmo.com/specs/otc-rest.openapi.yaml) - [Spot WebSocket AsyncAPI Spec](https://docs.zmo.com/specs/spot-websocket.asyncapi.yaml) - [Futures WebSocket AsyncAPI Spec](https://docs.zmo.com/specs/futures-websocket.asyncapi.yaml) - [OTC WebSocket AsyncAPI Spec](https://docs.zmo.com/specs/otc-websocket.asyncapi.yaml) - [API Explorer (interactive)](https://docs.zmo.com/api-explorer)