I was trying to place cover order in using basket order but its not working. i tried everything but things are just not working Please help me.
I passed the following
[{'symbol': 'NSE:AAVAS-EQ', 'qty': 1, 'type': 1, 'side': 1, 'productType': 'CO', 'limitPrice': 1270.5,
'stopPrice': 0, 'validity': 'DAY', 'disclosedQty': 0, 'takeProfit': 0, 'stopLoss': 10.5,
'offlineOrder': False, 'orderTag': '1', 'isSliceOrder': False},
{'symbol': 'NSE:AFCONS-EQ', 'qty': 1, 'type': 1, 'side': -1, 'productType': 'CO', 'limitPrice': 338.45,
'stopPrice': 0, 'validity': 'DAY', 'disclosedQty': 0, 'takeProfit': 0, 'stopLoss': 4.55,
'offlineOrder': False, 'orderTag': '1', 'isSliceOrder': False}]
and got response:
{'code': 200, 'message': '', 'data': [{'statusCode': 400, 'body': {'code': -50, 'message': 'Invalid input', 's': 'error'},
'statusDescription': 'Bad Request'},
{'statusCode': 400, 'body': {'code': -50, 'message': 'Invalid input', 's': 'error'},
'statusDescription': 'Bad Request'}], 's': 'ok'}Getting error in placing CO and BO using api
2 replies