Trade

When an order is executed (either filled or partially filled), the server will generate a new trade event. You can listen to this event by registering for it.

socket.on('trade', function (trade) {
    console.info("interactive socket connected successfully!");
 }); 

When a trade occurs on your account, you will receive the following trade object.

{
    "LoginID": "TEST1",
    "ClientID": "TEST1",
    "AppOrderID": 2102100002,
    "OrderReferenceID": "",
    "GeneratedBy": "API",
    "ExchangeOrderID": "76-1714453794213000110",
    "OrderCategoryType": "NORMAL",
    "ExchangeSegment": "BSECM",
    "ExchangeInstrumentID": 500410,
    "OrderSide": "BUY",
    "OrderType": "Limit",
    "ProductType": "NRML",
    "TimeInForce": "DAY",
    "OrderPrice": 2300,
    "OrderQuantity": 10,
    "OrderStopPrice": 0,
    "OrderStatus": "Filled",
    "OrderAverageTradedPrice": 2300,
    "LeavesQuantity": 0,
    "CumulativeQuantity": 10,
    "OrderDisclosedQuantity": 0,
    "OrderGeneratedDateTime": "01-05-2024 15:42:38",
    "ExchangeTransactTime": "01-05-2024 15:42:38",
    "TradingSymbol": "ACC",
    "LastUpdateDateTime": "22-09-54332193454 04:12:00",
    "OrderExpiryDate": "01-01-1970 00:00:00",
    "CancelRejectReason": "",
    "OrderUniqueIdentifier": "abc",
    "OrderLegStatus": "SingleOrderLeg",
    "IsSpread": false,
    "MessageCode": 0,
    "MessageVersion": 0,
    "TokenID": 0,
    "ApplicationType": 0,
    "SequenceNumber": 20,
    "LastExecutionDateTime": "22-09-54332193454 04:12:00",
    "ExecutionID": "5100",
    "LastTradedQuantity": 10,
    "LastTradedPrice": 2300
}