Skip to main content

Execution

Subscribe to the execution stream to see when an open order gets filled or partially filled.

Covers: USDT Perpetual, Inverse Perpetual, Inverse Future

Push frequency: real-time

Topic: user.execution.contractAccount

Response Parameters

ParameterTypeComments
topicstringTopic name
dataarrayObject
> symbolstringSymbol name
> sidestringSide. Buy,Sell
> execIdstringtransaction ID
> feeRatestringTrading fee rate
> execFeestringExecuted fee
> execPricestringExecuted price
> execQtystringExecuted qty
> leavesQtystringRemaining order qty waiting to be executed
> execTypestringExecuted type
> execValuestringExecuted value
> lastLiquidityIndstringLiquidity index. AddLiquidity,RemovedLiquidity
> orderIdstringOrder ID
> orderLinkIdstringUser customised order ID
> orderPricestringOrder price
> orderQtystringOrder qty
> orderTypestringOrder type. Market,Limit
> stopOrderTypestringStop order type. No stop order type if the order is not stop order
> execTimestringTransaction timestamp (ms)
> closedSizestringPosition size to be closed
> blockTradeIdstringParadigm block trade ID
> markPricestringMark price

Stream Example

{
"topic": "user.execution.contractAccount",
"data": [
{
"symbol": "ETHUSDT",
"execFee": "0.1017888",
"execId": "8b4b2e8c-caa1-5fde-be59-d483166885e7",
"execPrice": "1696.48",
"execQty": "0.1",
"execType": "Trade",
"execValue": "169.648",
"feeRate": "0.0006",
"lastLiquidityInd": "RemovedLiquidity",
"leavesQty": "0",
"orderId": "cd2f6f95-8031-4272-9339-e7054ff56567",
"orderLinkId": "",
"orderPrice": "1781.09",
"orderQty": "0.1",
"orderType": "Market",
"stopOrderType": "UNKNOWN",
"side": "Buy",
"execTime": "1676885237382",
"closedSize": "0",
"blockTradeId": "",
"markPrice": "1696.25"
}
]
}