- RESTful API: For actions such as creating/canceling orders, fetching balances, and managing accounts.
- WebSocket API: For real-time orderbook data feeds and order update feeds.
Base Endpoints
| Environment | URL |
|---|---|
| Mainnet | https://api.orderly.org/ |
| Testnet | https://testnet-api.orderly.org |
REST Request Conventions
GETandDELETE: parameters must be sent as a query string.POSTandPUT: parameters must be sent in the request body with content typeapplication/json.- Parameters may be sent in any order.
Authorization
All private endpoints require signing via cryptographically secure keys (Orderly key). Set the corresponding headers in your request — see API Authentication for details.Symbol Format
Orderly uses the formatPERP_<SYMBOL>_USDC for symbol names, e.g. PERP_ETH_USDC.
Rate Limit
Rate limits are counted per Orderly key. If your application exceeds the rate limit for an endpoint, the server will return HTTP429. Wait until the next time window before retrying.
Error Message
Errors consist of three parts: an error code, a detail message, and a success flag.message field contains the specific error detail. See Error Codes for the full list.