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
Parameter | Type | Comments |
---|---|---|
topic | string | Topic name |
data | array | Object |
> symbol | string | Symbol name |
> side | string | Side. Buy ,Sell |
> execId | string | transaction ID |
> feeRate | string | Trading fee rate |
> execFee | string | Executed fee |
> execPrice | string | Executed price |
> execQty | string | Executed qty |
> leavesQty | string | Remaining order qty waiting to be executed |
> execType | string | Executed type |
> execValue | string | Executed value |
> lastLiquidityInd | string | Liquidity index. AddLiquidity ,RemovedLiquidity |
> orderId | string | Order ID |
> orderLinkId | string | User customised order ID |
> orderPrice | string | Order price |
> orderQty | string | Order qty |
> orderType | string | Order type. Market ,Limit |
> stopOrderType | string | Stop order type. No stop order type if the order is not stop order |
> execTime | string | Transaction timestamp (ms) |
> closedSize | string | Position size to be closed |
> blockTradeId | string | Paradigm block trade ID |
> markPrice | string | Mark 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"
}
]
}