data = {
"symbol":ce_symbol,
"qty":75,
"type":1,
"side":1,
"productType":"BO",
"validity":"DAY",
"disclosedQty":0,
"offlineOrder":False,
"stopLoss":ltp-10,
"takeProfit":ltp+20,
"orderTag":"tag1"
}
response = fyers.place_order(data=data)
print(response)output: {'code': -50, 'message': 'productType must be one of the following: "CNC", "MARGIN", "INTRADAY", "MTF"', 's': 'error'}
When i tried placing BO order using fyers API, it is not accepting the order.
Please reply,
and give proper solution to this.