Fyers V3 API - "Invalid Input" Error Code -50 When Placing Multiple Orders

Hi everyone,

I’m currently integrating the Fyers V3 API into my trading system and have run into an issue when trying to place multiple orders. I’m receiving the following response:

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

Here are the details of the request I’m sending:

[
    {
        "symbol": "NSE:PIIND-EQ",
        "qty": 9,
        "type": 3,
        "side": -1,
        "productType": "BO",
        "limitPrice": 0.0,
        "stopPrice": 4598.25,
        "validity": "DAY",
        "disclosedQty": 0,
        "offlineOrder": false,
        "stopLoss": 15.75,
        "takeProfit": 31.5
    },
    {
        "symbol": "NSE:CHOLAFIN-EQ",
        "qty": 23,
        "type": 3,
        "side": -1,
        "productType": "BO",
        "limitPrice": 0.0,
        "stopPrice": 1487.2,
        "validity": "DAY",
        "disclosedQty": 0,
        "offlineOrder": false,
        "stopLoss": 6.3,
        "takeProfit": 12.65
    }
]

Any help would be greatly appreciated!

Thanks in advance!

Hey @107519296105230043218

Could you please check the response you are sending in the inputs? It should not be of the single order

@WWhYB2qrsx Sorry, I don’t get you. What you mean by the response I am sending?

Hey @107519296105230043218

Please check the response key in this sample code :
https://myapi.fyers.in/docsv3#tag/Order-Placement/paths/~1OthePlacement/get