API
Imperial's REST and WebSocket API serves market data, account data and trading.
Base URL:
https://api.imperial.trade/api/v1Interactive reference: api.imperial.trade/api/v1/docs
OpenAPI spec: api.imperial.trade/api/v1/openapi.json
Market data (public)
GET /armada/markets
Every listed market with max leverage (isolated and cross), maintenance and liquidation terms
GET /armada/orderbook
Order book depth for a market
GET /armada/quote
Expected fill price for a size
GET /armada/status
Market and platform status
GET /armada/open-availability
Whether a new open would be accepted right now, with the reason if not
GET /armada/fills
Recent fills
GET /funding-rates, GET /mark-prices
Funding and mark prices
Account data
/positions, /orders, /order-history, /trades, /funding-history, /pnl-history, and /armada/margin for margin account balances.
Trading
Authenticate with your wallet:
POST /mobile/connect, sign the challenge, thenPOST /mobile/exchangefor a token.Place orders with
POST /mobile/orders(underwriter: 7). Opening orders need a non-zeroslippageBps.Preview fees with
GET /trade-preview.
WebSockets
/ws streams account updates and /ws/market streams market data.
Example
See Risk Limits for rate limits.
Last updated

