Modify order for sell
-
HI @darshan post your req and response here.
-
This post is deleted! -
HI @darshan We will test it and update you.
-
@admin Ok Thank you
-
@admin Request - from smartapi import SmartConnect exchange = "NSE" tradingsymbol = "NHPC-EQ" symboltoken = "17400" variety = "NORMAL" ordertype = "LIMIT" producttype = "INTRADAY" duration = "DAY" squareoff = "0" stoploss = "0" quantity = 1 def selling(current_price, orderid): orderparams = { "variety": variety, "orderid": orderid, "ordertype": ordertype, "producttype": producttype, "transactiontype": "SELL", "duration": duration, "price": current_price, "quantity": quantity, "tradingsymbol": tradingsymbol, "symboltoken": symboltoken, "exchange": exchange } orderresponse = obj.modifyOrder(orderparams) return orderresponse data = obj.ltpData(exchange, tradingsymbol, symboltoken) current_price = data['data']['ltp'] orderid = '210823000463560' orderresponse = selling(current_price, orderid) print("Selling order response: {}".format(orderresponse)) * Response -
Selling order response: {'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': {'orderid': '210823000463560'}}
-
@admin Please let me know what I missed
-
-
@admin Can you please help with this.
-
HI @darshan we will definately help you out we appreciate your patience we will update you with correct request soon.
-
@admin Thank you
-
@darshan Thank you so much Yatish for your help.