Skip to main content

Subscribe

{
  "method": "subscribe",
  "subscription": {
    "type": "activeAssetData",
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb",
    "coin": "BTC"
  }
}

Response

{
  "channel": "activeAssetData",
  "data": {
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb",
    "coin": "BTC",
    "leverage": 5
  }
}

Notes

  • Both user and coin are required for subscribe and unsubscribe messages. - The server sends an initial snapshot immediately after a successful subscription. - Subsequent messages are emitted when the user’s leverage changes for that market. - The server normalizes user to lowercase and coin to uppercase in responses.