Unable to place BO orders from Fyers API

I wanted to place BO orders for Stocks with SL/SL-M orders

data = {
    "symbol":"NSE:BHARTIARTL-EQ",
    "qty":1,
    "type":3,
    "side":1,
    "productType":"BO",
    "limitPrice":0,
    "stopPrice":1222,
    "validity":"DAY",
    "disclosedQty":0,
    "offlineOrder":False,
    "stopLoss": 10,
    "takeProfit": 20,
    "orderTag":"BO Orders"
}
response = fyers.place_order(data=data)

getting error - {'code': -50, 'message': 'productType must be one of the following: "CNC", "MARGIN", "INTRADAY"', 's': 'error'}
1
5 replies