Modify Order
Request to be POSTed to uri : /NorenWClientTP/ModifyOrder
Request Details
Note: If order status is not (“status”: “OPEN” or “TRIGGER_PENDING”) user can’t modify/cancel the order.
| Parameter Name | Possible value | Description |
|---|---|---|
| jData* | Should send json object with fields in below list | |
| jKey* | Key Obtained on login success. |
| Json Fields | Possible value | Description |
|---|---|---|
| exch* | Exchange | |
| norenordno* | Noren order number, which needs to be modified | |
| prctyp | LMT / MKT / SL-MKT / SL-LMT | This can be modified. |
| prc | Modified / New price | |
| qty | Modified / New Quantity Quantity to Fill / Order Qty - This is the total qty to be filled for the order. Its Open Qty/Pending Qty plus Filled Shares (cumulative for the order) for the order. * Please do not send only the pending qty in this field |
|
| tsym* | Unique id of contract on which order to be placed. (use url encoding to avoid special char error for symbols like M&M) | |
| ret | DAY / EOS / IOC | New Retention type of the order |
| trgprc | New trigger price in case of SL-MKT or SL-LMT | |
| uid* | User id of the logged in user. | |
| bpprc | Book Profit Price applicable only if product is selected as B (Bracket order) | |
| blprc | Book loss Price applicable only if product is selected as H and B (High Leverage and Bracket order) | |
| trailprc | Trailing Price applicable only if product is selected as H and B (High Leverage and Bracket order) |
Response Details
Response data will be in json format with below fields:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Modify order success or failure indication. |
| result | Noren Order number of the order modified. | |
| request_time | Response received time. | |
| emsg | This will be present only if Order modification fails |
Sample Success Response
{ "request_time":"14:14:08 26-05-2020", "stat":"Ok", "result":"20052600000103"}Sample Failure Response
{ "request_time":"16:03:29 28-05-2020", "stat":"Not_Ok", "emsg":"Rejected : ORA:Order not found"}