Cancel Order

This function will trigger the Cancel Order dialog. It takes four parameters: the provider, account, the id for the order that you want to cancel and the callback function that will be called when the result is available and the confirmation.

Important

Confirmation is optional or can be one of the following options:
  • ON, the order will be placed only with user confirmation.

  • OFF, the order will be placed without any confirmation.

  • DEF, the order will be placed according to the Order Entry Properties setting.

  • Default value will be DEF if this parameter is missing

function cancelOrder(provider, account, orderId, callback, confirmation)

Possible Responses:

  • Success

{
    "RQT":"cancel_order",           // Request Type
    "RQI":"35",                     // Request Id
    "RES":"OK"                      // Result
}
  • Error

{
    "RQT":"cancel_order",               // Request Type
    "RQI":"35",                         // Request Id
    "RES":"ERR",                        // Result
    "MSG":"Cannot find the order"       // Error Message

}