Preparation

Before you use API, you need to login the website to create API Key with proper permissions. The API key is shared for all instruments in SunX including spot, futures, swap, options.

You can manage your API Keys here.

Every user can create at most 20 API Keys, each can be applied with either permission below:

  • Read permission: It is used to query the data, such as order query, trade query.

  • Trade permission: It is used to create order, cancel order and transfer, etc.

  • Withdraw permission: It is used to create withdraw order, cancel withdraw order, etc.

Please remember below information after creation:

  • Access Key It is used in API request

  • Secret Key It is used to generate the signature (only visible once after creation)

The API Key can bind maximum 20 IP addresses (either host IP or network IP), we strongly suggest you bind IP address for security purpose. The API Key without IP binding will be expired after 90 days.Warning : These two keys are important to your account safety, please don't share both of them together to anyone else . If you find your API Key is disposed, please remove it immediately.

Last updated