Order and Trades
Cancel Order
POST
/NorenWClientAPI/CancelOrderAuthorization token is required. Enter your access_token from GenAcsTok above.
jData fields
Values are sent as a JSON string in the jData form field.
Noren order number, which needs to be modified
User id of the logged in user
External remarks
Cli Order Id
Channel
User Agent
App Install Id
Order Source
Global IP of internet access
Authorization Token
Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.
Request to be POSTed to url : /NorenWClientAPI/CancelOrder
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 | |
| Authorization* | Bearer <access_token> | access_token from GenAcsTok response. Required for all API calls. |
| Json Fields | Possible value | Description |
|---|---|---|
| norenordno* | Noren order number, which needs to be modified | |
| uid* | User id of the logged in user | |
| ext_remarks | External remarks | |
| cl_ord_id | Cli Order Id | |
| channel | Channel | |
| usr_agent | User Agent | |
| app_inst_id | App Install Id | |
| ordersource | Order Source | |
| ipaddr | Global IP of internet access |
Response Details
Response data will be in json format with below fields:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Cancel order success or failure indication. |
| result | Noren Order number of the canceled order. | |
| request_time | Response received time. | |
| emsg | This will be present only if Order cancelation fails |
Sample Success Response
{
"request_time":"14:14:10 26-05-2020",
"stat":"Ok",
"result":"20052600000103"
}Sample Failure Response
{
"request_time":"16:01:48 28-05-2020",
"stat":"Not_Ok",
"emsg":"Rejected : ORA:Order not found to Cancel"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/CancelOrder' \
--header 'Content-Type: text/plain' \
--data 'jData={}'Response will appear here after sending a request