WebSockets · Your account

Not a REST call: this is the WebSocket handshake. Connect to the URL below and the exchange answers 101 Switching Protocols; everything after that is frames, not requests.

Your own orders, pushed each time one changes: placed, partially filled, filled, cancelled.

No subscribe frame. The connection is bound to the account that signed the handshake and receives that account's events. There is no parameter naming an account, so there is no way to name someone else's.

The payload is the same order shape GET /api/user/orders returns.

get/user-orders

Request

  • Base URL
    wss://ws.azbit.com
  • URL
    wss://ws.azbit.com/user-orders
  • Auth
    none declared. Required headers: API-PublicKey, API-Signature

Query parameters

timestampinteger required

Unix milliseconds, within 30 seconds of server time, and part of the signed URL. A REST signature covers a request that happens once; a socket URL is requested once and then stays open, so without this a captured handshake would mirror your private stream indefinitely.

Headers

API-PublicKeystring required

Your API public key.

API-Signaturestring required

hex(HMAC_SHA256(privateKey, publicKey + connectUrl)). A handshake has no body, so nothing is appended after the URL. Sign the wss:// form, exactly as you connect.

Changes