Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Subscribe to several user streams with one websocket connection #213

Open
KonstantinLitvin opened this issue Dec 16, 2020 · 0 comments
Open

Comments

@KonstantinLitvin
Copy link

KonstantinLitvin commented Dec 16, 2020

When I subscribe to several user data streams (get listenkey for each account data stream for futures) and get message from one of the stream I can't find out which data stream send me that update message (there's no field like account id... ). Do you have any ideas how to distinguish the updates?

{
  "e": "ACCOUNT_UPDATE",                // Event Type
  "E": 1564745798939,                   // Event Time
  "T": 1564745798938 ,                  // Transaction
  "a":                                  // Update Data
    {
      "m":"ORDER",                      // Event reason type
      "B":[                             // Balances
        {
          "a":"USDT",                   // Asset
          "wb":"122624.12345678",       // Wallet Balance
          "cw":"100.12345678"           // Cross Wallet Balance
        },
        {
          "a":"BNB",           
          "wb":"1.00000000",
          "cw":"0.00000000"         
        }
      ], 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant