-
Notifications
You must be signed in to change notification settings - Fork 1
Trading API Sign Rules
-
All APIs, except for the public api, need to carry the parameter sign
-
All APIs need to carry time parameters (timestamp), and sign (sign, whitelist except api)
-
Sign signature verification rules
-
POST request, SRV combines and gets all the parameters of post t. Please do not set the same key. When POST, time, token and sign are put into get parameter.
-
Ask the user to save the apikey and apisecret assigned to the user as the encryption key
-
the rules of creating sign:sign=HMAC-SHA512(key1+value1+key2+value2+secret)
-
The keys of all parameters are arranged in ascending alphabetical order.
-
-
The return value structure of the outer fixed {"code": 0, "msg": "suc", "data": ""}
-
code: 0 for success, greater than 0, you can refer to msg return
-
msg: return error message
-
data: There are three return values, "", {}, [], need to be resolved according to the interface return value
-
Note: 100001-110000, System error reserved segment
100001: System is abnormal
100002:System upgrade, service suspension
100003:Request is illegal