Skip to main content

Execution

Subscribe to the execution or execution.event topic to receive real-time Event Contract execution (trade) updates.

Topic: execution / execution.event

info
  • Authentication is required before subscribing to private topics.
  • Pushed when an Event Contract order is filled (fully or partially).

Response Parameters

ParameterTypeComments
idstringMessage ID
topicstringTopic name
creationTimenumberData created timestamp (ms)
dataarrayObject
> categorystringProduct type. event
> transIdstringTransaction ID
> execIdstringExecution ID
> orderIdstringOrder ID
> orderLinkIdstringUser-defined order ID
> symbolstringSymbol name
> symbolIdintegerSymbol ID
> baseCoinstringBase coin
> quoteCoinstringQuote coin
> settleCoinstringSettle coin
> sidestringSide: Buy or Sell
> feeCoinstringFee coin
> execTypestringExecution type: Trade, Settle
> execPricestringExecution price (payout ratio)
> execValuestringExecution value
> execFeestringExecution fee
> execFeeRatestringExecution fee rate
> orderPricestringOrder price
> ecContractTypeintegerEvent contract type
> ecDirectionintegerDirection
> ecDurationWindowintegerDuration window in seconds
> ecTargetPricestringTarget price. Target type only.
> ecLowerBoundstringLower bound. Range type only.
> ecUpperBoundstringUpper bound. Range type only.
> ecOrderValuestringEvent Contract order value
> ecIndexPricestringIndex price at execution
> ecPayoutstringEvent Contract payout amount for this execution
> entryPricestringEntry price
> settlePricestringSettlement price
> grossPayoutRatiostringGross payout ratio
> sessionRplstringSession realised PnL
> transTimestringTransaction time in milliseconds
> settleTimeMsstringSettlement time in milliseconds
> crossSeqstringCross sequence number
> timeInForcestringTime in force, e.g. GoodTillCancel
> extraFeesarrayExtra fees

Subscribe Example

{
"op": "subscribe",
"args": [
"execution"
]
}

Stream Example

{
"topic": "execution",
"id": "1509583_ETHUSDT-5MIN-UP_1311",
"creationTime": 1787635282379,
"data": [
{
"category": "event",
"transId": "0176bba4-66fa-542b-af33-cea000a83dc0",
"execId": "0176bba4-66fa-542b-af33-cea000a83dc0",
"orderId": "746a6c87-a6dd-4008-8889-37e694046681",
"orderLinkId": "cjm1119",
"symbol": "ETHUSDT-5MIN-UP",
"symbolId": 500000,
"baseCoin": "ETH",
"quoteCoin": "USDT",
"settleCoin": "USDT",
"side": "Sell",
"feeCoin": "USDT",
"execType": "Trade",
"execPrice": "3.5",
"execValue": "100",
"execFee": "4.28571429",
"execFeeRate": "0.04285715",
"orderPrice": "3.5",
"ecContractType": 1,
"ecDirection": 1,
"ecDurationWindow": 300,
"ecTargetPrice": "",
"ecLowerBound": "",
"ecUpperBound": "",
"ecOrderValue": "5000",
"ecPayout": "350",
"entryPrice": "3.5",
"settlePrice": "2503.50730825",
"grossPayoutRatio": "3.5",
"sessionRpl": "0",
"transTime": "1787635282374",
"settleTimeMs": "1787635582374",
"crossSeq": "1311",
"timeInForce": "GoodTillCancel",
"extraFees": []
}
]
}