Infinn API Documentation
Order and Trades

Modify Order

POST/NorenWClientAPI/ModifyOrder

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

jData fields

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

Exchange

Noren order number, which needs to be modified

This can be modified.

Modified / New price (if prctyp = 'MKT/ SL-MKT' then the price will be '0')

Modified / New Quantity / old quantity if not modified

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)

Retention type of the order

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

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.

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]

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/ModifyOrder

Request Details

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
exch*Exchange
norenordno*Noren order number, which needs to be modified
prctyp*LMT / MKT / SL-MKT / SL-LMTThis 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)
retDAY / IOC / EOSRetention type of the order
mkt_protectionMarket order protection percentage. Applicable only for MKT orders in BSE/BFO/BCS and MCX segments.
trgprcNew trigger price in case of SL-MKT or SL-LMT
dscqtyDisclosed quantity (Max 10% for NSE, and 50% for MCX)
ext_remarksExternal remarks
cl_ord_idCli Order Id
channelChannel
usr_agentUser Agent
app_inst_idApp Install Id
uid*User id of the logged in user.
bpprcBook Profit Price applicable only if product is selected as B (Bracket order)
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket order)
trailprcTrailing Price applicable only if product is selected as H and B (High Leverage and Bracket order)
ipaddrGlobal IP of internet access
ordersourceMOB / WEB / TTUsed 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 FieldsPossible valueDescription
statOk or Not_OkModify order success or failure indication.
resultNoren Order number of the order modified.
request_timeResponse received time.
emsgThis 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"
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/ModifyOrder' \
  --header 'Content-Type: text/plain' \
  --data 'jData={}'
Response will appear here after sending a request