TradingAPIs
TradingAPIs copied to clipboard
order not place facing error
#Long Straddle client.long_straddle(symbol='BANKNIFTY',expiry='01 Dec 2022',strike_price='43000',qty='25',isIntra=True,client_id='*******', order_requester_code='order_requester_code',RemoteOrderID='XYZ010101')
isko run krne ke bad i face this type error
14:44:13 | {'BrokerOrderID': 0, 'ClientCode': '', 'Exch': '\x00', 'ExchOrderID': '', 'ExchType': '\x00', 'LocalOrderID': 0, 'Message': 'Invalid body parameters.', 'RMSResponseCode': 0, 'RemoteOrderID': None, 'ScripCode': 0, 'Status': 2, 'Time': '/Date(1669454056976+0530)/'} "Couldn't place order. Try again."
Have you tried Client_code in order_requester_code I think it will work as per API documentation