Introduce

1 General Rules

  • All Interface response are in JSON format;

  • All times and timestamps are UNIX times in milliseconds.

  • For GET requests, append parameters to the URL.

  • POST requests should be in either application/json or application/x-www-form-urlencoded format, as individually marked for each interface.

  • For interfaces that require signature verification, please add APIKEY and APIKEY_SIGN_TYPE_HEADER and signature in the request header.

  • Note:there is no close position method,instead of use the method named of "open order" by negative direction with your position.

NOTE:Some interfaces require verification of the API key and the signature of the request data, indicated in the interface documentation by the [**Signature Verification Required**] field. If marked [Yes], the following request headers need to be added]

Required request headers:
APIKEY  -- The API key used to call the API (also referred to as api_key in the following)
APIKEY_SIGN_TYPE_HEADER -- the type of signature(1-hmac 2-secp256k1 3-ed25519), just chose the 2.
signature  -- The signature made with the api_secret corresponding to the API key for the request parameters.

2 Apply API Key

APIKEY:

The market maker API is divided into three categories: public queries, private queries, and private operations. For the private category interfaces, authentication with API key is required.

Apply APIKEY URL:

Apply APIKEY

Step:

Note:

  • API Key -- The API key used to call the API, (also referred to as api_key in the following)

  • API Wallet Address

  • Private Key -- The private key is used for signing, (also referred to as api_secret in the following)

Last updated