As long as an order is open or pending in the system, certain attributes of it may be modified.
POST: /api/modifyOrder
https://connect.thefirstock.com/api/modifyOrder
Request Details
Parameter
Description
norenordno
Noren order number, which needs to be cancelled
price
Modified / New price
quantity
Modified / New Quantity
triggerPrice
New trigger price in case of SL-MKT or SL-LMT
userId
User id of the logged in user.
jKey
Key Obtained on login success.
exchange
NSE / NFO / BSE
tradingSymbol
Trading Symbol (use url encoding to avoid special char error for symbols like M&M) NSE NFO
priceType
LMT / MKT / SL-LMT / SL-MKT
Code
fromthefirstockimportthefirstockmO=thefirstock.firstock_ModifyOrder(norenordno='norenordno',#Replace with the norenordnoquantity='',triggerPrice='',price='',exchange='',tradingSymbol='',priceType='',norenordno='norenordno',#Replace with the norenordno)