mexcdevelop / mexc-api-sdk

MIT License
187 stars 77 forks source link

"SpotV3 / Websocket User Data Streams / Spot Account Update" pushes wrong balance data #32

Open exlinx opened 1 year ago

exlinx commented 1 year ago
// these are three consecutive pushes after sending a BUY LIMIT order
// initial USDT balance when sending order, was "31.5433752502"
    {
        "c": "spot@private.account.v3.api",
        "d": {
            "a": "USDT",
            "c": 1680208095208,
            "f": "31.5433752502",   // free balance does not change!
            "fd": "-31.258238011",
            "l": "0",               // locked balance should be "31.258238011"
            "ld": "31.258238011",
            "o": "ENTRUST_PLACE"
        },
        "t": 1680208095213
    },
    {
        "c": "spot@private.account.v3.api",
        "d": {
            "a": "USDT",
            "c": 1680208095226,
            "f": "31.5434047324",   // still no change!
            "fd": "0.0000294822",
            "l": "-30.260235258",   // how can locked balance be negative?
            "ld": "-30.260235258",
            "o": "ENTRUST"
        },
        "t": 1680208095230
    },
    {
        "c": "spot@private.account.v3.api",
        "d": {
            "a": "USDT",
            "c": 1680208095242,
            "f": "31.5738305751",   // order fully executed; wrong balance
            "fd": "0.0304258427",
            "l": "-31.258238011",   // should be zero
            "ld": "-0.998002753",
            "o": "ENTRUST"
        },
        "t": 1680208095244
    }