SL-L Giving error {'code': -50, 'message': 'Invalid input', 's': 'error'}

I have placed an sell order

{‘s’: ‘ok’, ‘orders’: {‘clientId’: ‘', ‘id’: '’, ‘exchOrdId’: ‘', ‘qty’: 40, ‘filledQty’: 40, ‘limitPrice’: 39.55, ‘type’: 2, ‘fyToken’: '’, ‘exchange’: 10, ‘segment’: 11, ‘symbol’: ‘NSE:FINNIFTY2390519800CE’, ‘instrument’: 14, ‘offlineOrder’: False, ‘orderDateTime’: ‘04-Sep-2023 14:50:41’, ‘orderValidity’: ‘DAY’, ‘productType’: ‘INTRADAY’, ‘side’: -1, ‘status’: 90, ‘source’: ‘API’, ‘ex_sym’: ‘FINNIFTY’, ‘description’: ‘23 Sep 05 19800 CE’, ‘orderNumStatus’: ‘23090400353200:2’}}

As from above logs it clear that order is placed. after that I am placing SL-L order but getting error following are the details of SL-L order.

{‘symbol’: ‘NSE:FINNIFTY2390519800CE’, ‘qty’: 40, ‘type’: 4, ‘side’: 1, ‘productType’: ‘INTRADAY’, ‘limitPrice’: ‘53.30’, ‘stopPrice’: ‘52.55’, ‘validity’: ‘DAY’, ‘disclosedQty’: 0, ‘offlineOrder’: False}

Response:

{‘code’: -50, ‘message’: ‘Invalid input’, ‘s’: ‘error’}

Using FyersAPI 3.0

Not sure what is the issue. Any help will be appreciated.

Thank you.

Hi @sBypTBSg4Q

data = {
    "symbol":"NSE:FINNIFTY2390519800CE",
    "qty":40,
    "type":4,
    "side":1,
    "productType":"INTRADAY",
    "limitPrice":53.30,
    "stopPrice":52.55,
    "validity":"DAY",
    "disclosedQty":0,
    "offlineOrder":False,
}

I tried with same data. This order is placed Can you check with the above format.

issue was with the limitprice and stopprice data, it was going as string. Thanks for the help.