Modify Order
/NorenWClientAPI/ModifyOrderAuthorization 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.
Exchange
- Example:
NSE - Where to get it: 'exarr' array in the UserDetails response.
- Allowed: NSE, NFO, BSE, MCX, CDS, NCX, BFO, BCD
Noren order number, which needs to be modified
- Example:
24010100000001 - Where to get it: norenordno returned by PlaceOrder, or listed in the OrderBook.
This can be modified.
- Example:
LMT - Allowed: LMT, MKT, SL-LMT, SL-MKT, DS, 2L, 3L
Modified / New price (if prctyp = 'MKT/ SL-MKT' then the price will be '0')
- Example:
1000 - Where to get it: Your limit price. Use "0" for MKT / SL-MKT orders.
Modified / New Quantity / old quantity if not modified
- Example:
1 - Where to get it: Quantity in units (for F&O a multiple of the lot size).
Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M)
- Example:
RELIANCE-EQ - Where to get it: SearchScrip reply, or the TradingSymbol column of the exchange symbol file.
Retention type of the order
- Example:
DAY - Allowed: DAY, EOS, IOC
Market order protection percentage. Applicable only for MKT orders in BSE/BFO/BCS and MCX segments.
New trigger price in case of SL-MKT or SL-LMT
- Example:
995 - Where to get it: Trigger price, only for SL-LMT / SL-MKT orders.
Disclosed quantity (Max 10% for NSE, and 50% for MCX)
External remarks
Cli Order Id
Channel
User Agent
App Install Id
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.
Book Profit Price applicable only if product is selected as B (Bracket order)
Book loss Price applicable only if product is selected as H and B (High Leverage and Bracket order)
Trailing Price applicable only if product is selected as H and B (High Leverage and Bracket order)
Global IP of internet access
Used to generate exchange info fields. [Optional field else it will take login access type]
- Example:
API - Allowed: MOB, WEB, TT, API
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/ModifyOrder
Request Details
| 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 |
|---|---|---|
| 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 (if prctyp = 'MKT/ SL-MKT' then the price will be '0') | |
| qty* | Modified / New Quantity / old quantity if not modified | |
| tsym* | Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M) | |
| ret | DAY / IOC / EOS | Retention type of the order |
| mkt_protection | Market order protection percentage. Applicable only for MKT orders in BSE/BFO/BCS and MCX segments. | |
| trgprc | New trigger price in case of SL-MKT or SL-LMT | |
| dscqty | Disclosed quantity (Max 10% for NSE, and 50% for MCX) | |
| ext_remarks | External remarks | |
| cl_ord_id | Cli Order Id | |
| channel | Channel | |
| usr_agent | User Agent | |
| app_inst_id | App Install Id | |
| 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) | |
| ipaddr | Global IP of internet access | |
| ordersource | MOB / WEB / TT | Used to generate exchange info fields. [Optional field else it will take login access type] |
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"
}
</details>curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/ModifyOrder' \
--header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
--header 'Content-Type: text/plain' \
--data 'jData={"exch":"NSE","norenordno":"24010100000001","prctyp":"LMT","prc":"1000","qty":"1","tsym":"RELIANCE-EQ","uid":"YOUR_USER_ID"}'