Signature Authentication
When calling TRADE or USER_DATA endpoints, a signature must be included in the request header:
Header field:
X-CH-SIGNAlgorithm:
HMAC SHA256Key: Your API Secret (linked to your API Key)
Signature Construction
The signature is generated using the following concatenated string:
sqlCopyEdittimestamp + method + requestPath + bodytimestamp: Same value as theX-CH-TSheadermethod: HTTP method in uppercase (GET,POST, etc.)requestPath: API endpoint path (e.g.,/sapi/v1/order)body: Raw string of the request body (for POST requests only; leave empty for GET)
The resulting string is hashed using HMAC SHA256 with your API Secret as the key.
⚠️ The signature value is not case sensitive.
Last updated