跳到主要内容

Event Format

User Data Stream events for non-SBE sessions are sent as JSON in text frames, one event per frame.

Events in SBE sessions will be sent as binary frames.

Please refer to userDataStream.subscribe for details on how to subscribe to User Data Stream in WebSocket API.

Example of an event:

{
"event": {
"e": "outboundAccountPosition",
"E": 1728972148778,
"u": 1728972148778,
"B": [
{
"a": "ABC",
"f": "11818.00000000",
"l": "182.00000000"
},
{
"a": "DEF",
"f": "10580.00000000",
"l": "70.00000000"
}
]
}
}

Event fields:

NameTypeMandatoryDescription
eventOBJECTYESEvent payload. See User Data Streams