Base Endpoint
RESTful API Base Endpoint
Important Notes
- All API responses are in JSON format
- All times and timestamps are UNIX time (milliseconds)
- Important: All numeric type parameters and return values are multiplied by 10^18 (e.g., 1 ETH = 1000000000000000000)
-
Each interface may throw exceptions, exception response format is as follows:
-
Parameter order is not required
Numeric Format Description
All numeric values (prices, quantities, amounts, etc.) need to be multiplied by 10^18 (10 to the power of 18).
Examples:
- 1 ETH = 1000000000000000000
- 2500 USDT = 2500000000000000000000
- 0.5 ETH = 500000000000000000
API Service Endpoints
Authentication Service (Gateway)
Market Data Service (Market API)
Trading Service (Trade API)
Response Format
All API responses follow a unified format:
code: Response code, 200 indicates successmessage: Response messagedata: Response data