Skip to content

subscribeBalanceUpdates sends incorrect events #44

@alexander-hagen

Description

@alexander-hagen

After successful subscription to subscribeBalanceUpdates, the socket sends:
{ event: 'user_balance_update', status: 'ok', ts: 1707595503038 }
The expected message is:
{
"e":"BALANCE",
"x":"OutboundAccountPositionOrderEvent",
"E":1635515839203,
"I":208810488108744704,
"i":1635515839203,
"B":[
{
"a":"btr",
"F":"9999999.9658620755200000",
"T":1635515839000,
"f":"2.8125000000000000",
"L":"0.0000000000000000",
"l":"-2.8125000000000000",
"t":1635515839000
},
{
"a":"usdt",
"F":"10000008.8000000000000000",
"T":1635515839000,
"f":"10.2600000000000000",
"L":"0.0000000000000000",
"l":"-10.2600000000000000",
"t":1635515839000
}
],
"u":1090862
}

Can you give an example of the output and can you please indicate if, after subscribing, there will be a balance snapshot first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions