Trade Conversion

If a trade conversion occurs on your account, the server will trigger this event to indicate the status of the trade conversation. By registering for this event, you can track the status of trade conversions.

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

When a change in trade conversion occurs on your account, you will receive the following tradeConversion object.

{
    "LoginID": "TEST1",
    "ClientID": "TEST1",
    "TargetProduct": "MIS",
    "OriginalProduct": "NRML",
    "TargetQty": 2,
    "OriginalQty": 0,
    "OrderSide": "BUY",
    "Success": true,
    "RejectionReason": "",
    "GeneratedOrderId": "",
    "ExhangeSegment": "BSECM",
    "ExchangeInstrumentId": 500410,
    "InstrumentType": "C",
    "SequenceNumber": 1,
    "NOWTimeStamp": "15-03-56302 03:01:52",
    "TargetEntityId": "TEST1",
    "Status": "PositionConverted",
    "Price": 0,
    "NetValue": 4600,
    "RejectedBy": "",
    "IsProOrder": false,
    "MessageCode": 0,
    "MessageVersion": 0,
    "TokenID": 0,
    "ApplicationType": 0,
    "ErrorMessage": "",
    "EntityType": "CLIENT",
    "UserID": "TEST1"
}