Authentication

View as Markdown

JWT

After login, the API returns an accessToken. When calling private endpoints, include:

1Authorization: Bearer YOUR_ACCESS_TOKEN

API Key

When the X-API-KEY request header is present, the server uses API Key HMAC authentication:

1X-API-KEY: YOUR_API_KEY

API Key management endpoints must use JWT. API Keys cannot manage themselves.

API Key Permissions

ValuePermissionDescription
1ReadUser info, assets, account change logs, statistics, listenKey, favorite symbols, and related user/account endpoints. Order and position endpoints, including queries, require Trade permission
2TradeOrder and position endpoints, including both query and write operations
4WithdrawReserved fund permission

To grant both read and trade permissions, use permissions=3.