TradingAPIs icon indicating copy to clipboard operation
TradingAPIs copied to clipboard

order not place facing error

Open vikasgithub111 opened this issue 3 years ago • 1 comments

#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."

vikasgithub111 avatar Nov 26 '22 09:11 vikasgithub111

Have you tried Client_code in order_requester_code I think it will work as per API documentation

pratikjoshiauxirem avatar Jan 10 '23 10:01 pratikjoshiauxirem