Skip to main content

Execution

Subscribe to the execution stream. Will not push funding payments unless they occur on a USDT perpetual, eg BTCUSDT.

tip

You may have multiple pushes for one order.

Topic:
user.execution.unifiedAccount

Response Parameters

ParameterTypeComments
idstringMessage id
topicstringTopic name
typestringMessage type. snapshot
tsnumberThe timestamp (ms) that system generates the data.
dataObject
> versionintegerVersion
> resultarrayObject
>> symbolstringSymbol name
>> orderIdstringOrder id
>> sidestringSide. Buy,Sell
>> orderLinkIdstringUser customized order id
>> orderPricestringOrder price
>> orderQtystringOrder qty
>> orderTypestringOrder type
>> execIdstringExecution id
>> execPricestringExecution price
>> execQtystringExecution qty
>> execValuestringExecuted order value
>> feeRatestringTrading fee rate
>> execFeestringExecuted trading fee
>> execTimestringExecuted timestamp (ms)
>> execTypestringExecuted type. TRADE,ADLTRADE,FUNDING,BUSTTRADE,SETTLE
>> lastLiquidityIndstringLiquidity index. TAKER, MAKER
>> leavesQtystringThe remaining qty not executed
>> stopOrderTypestringStop order type. If the order is not stop order, any type is not returned
>> blockTradeIdstringParadigm block trade ID

Stream Example

{
"id": "533285750bcd0d-6878-4db4-bc15-71207e39acda",
"topic": "user.execution.unifiedAccount",
"ts": 1672824334832,
"data": {
"result": [
{
"symbol": "ARUSDT",
"execFee": "1.399224",
"execId": "b90dc5f2-0a01-53e7-b1c5-aa7dfbe774da",
"execPrice": "6.92",
"execQty": "337",
"execType": "TRADE",
"execValue": "2332.04",
"feeRate": "0.0006",
"lastLiquidityInd": "TAKER",
"leavesQty": "0",
"orderId": "496929da-6243-4f40-b621-267f9611e565",
"orderLinkId": "",
"orderPrice": "6.58",
"orderQty": "337",
"orderType": "Market",
"stopOrderType": "",
"side": "Sell",
"execTime": 1672824334817,
"blockTradeId": ""
}
],
"version": 177285
},
"type": "snapshot"
}