Expand description
The signature of a request: HMAC-SHA256, written as lower case hex.
A REST request signs timestamp + api_key + recv_window + payload, where the payload is the query string of a GET
or the JSON body of a POST, exactly as sent. The WebSocket login signs GET/realtime plus the expires time.
Functions§
- rest_
payload - The string a REST request signs.
- sign
- HMAC-SHA256 of
payloadwithsecret, as lower case hex. - ws_
auth_ args - The
argsof the WebSocket login: the key, theexpirestime (milliseconds, in the future) and the signature ofGET/realtime{expires}.