Register to Order Entry

Important

This function will register your application to receive Order Entry Events.

It takes two parameters: the synchronous callback function and a asynchronous callback function. First callback function will be responsible for processing the synchronous response that is sent by the server. The second callback function (callbackOE) will be called each time a new order entry update occurs.

function registerOrderEntry(callback, callbackOE)

Possible Responses:

  • Success

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

{
    "RQT":"oe_register",                // Request Type
    "RQI":"45",                         // Request Id
    "RES":"ERR",                        // Result
    "MSG":"Cannot satisfy request"      // Error Message
}