Base endpoints
https://api.orderly.org/
(Mainnet)
https://testnet-api.orderly.org
(Testnet)
General Information on REST Endpoints
ForGET
and DELETE
endpoints, parameters must be sent as a query string
.
For POST
and PUT
endpoints, the parameters must be sent in the request body
with content type application/json
.
Parameters may be sent in any order.
Authorization
All our private interfaces require signing via cryptographically secure keys for authentication, also known as Orderly key.Please set the corresponding header in your request. Please refer to API authentication for more information.
Symbol
Orderly uses the format ofPERP_<SYMBOL>_USDC
to represent a symbol name, for example: PERP_ETH_USDC
.
Rate Limit
Rate limit is counted using the Orderly key. If your application reached the rate limit of certain endpoint, the server will return an error result with http code429
. You may need wait until next time horizon.
Error Message
Errors consist of three parts: an error code, detailed message and a success flag.
Specific error codes and messages are defined in Error Codes.