Infinn API Documentation
Order and Trades

Cancel Order

POST/NorenWClientAPI/CancelOrder

Authorization token is required. Enter your access_token from GenAcsTok above.

"Use proxy" sends this request through this website's server, which never logs request or response bodies. Infinn sees the docs server's IP, not yours. Turn it off to send directly from your browser instead.

jData fields

Values are sent as a JSON string in the jData form field.

Noren order number, which needs to be modified

  • Example: 24010100000001
  • Where to get it: norenordno returned by PlaceOrder, or listed in the OrderBook.

User id of the logged in user

  • Example: YOUR_USER_ID
  • Where to get it: The ID you log in with at trade.infinn.in (User ID = Client ID). Also returned as uid by GenAcsTok.

External remarks

Cli Order Id

Channel

User Agent

App Install Id

Order Source

  • Example: API
  • Allowed: MOB, WEB, TT, API

Global IP of internet access

Authorization Token

Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.

⚠ When "Use proxy" is on, this token is sent through this website's server on its way to Infinn. It is never logged here, but if you would rather it never leave your browser, turn off "Use proxy" above or use the ready code with your own client instead.

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 NamePossible valueDescription
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 FieldsPossible valueDescription
norenordno*Noren order number, which needs to be modified
uid*User id of the logged in user
ext_remarksExternal remarks
cl_ord_idCli Order Id
channelChannel
usr_agentUser Agent
app_inst_idApp Install Id
ordersourceOrder Source
ipaddrGlobal IP of internet access
Response Details

Response data will be in json format with below fields:

Json FieldsPossible valueDescription
statOk or Not_OkCancel order success or failure indication.
resultNoren Order number of the canceled order.
request_timeResponse received time.
emsgThis 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"
}

</details>
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/CancelOrder' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"norenordno":"24010100000001","uid":"YOUR_USER_ID"}'
Response will appear here after sending a request