Not able to place Bracket Order (BO) using Fyers API

Hello,

Reposting again. My first post is not visible to me anywhere.

So my issue is: I have implemented Fyers API in C#.NET, I am trying to place BO Order using APIs but I am getting below error message from Fyers.

“”“api_status_code”“: -50”

“”“response_body”“: ““productType must be one of the following: "“CNC"”, "“MARGIN"”, "“INTRADAY"””””

Here is my request body -

{

“OrderId”: null,

“Symbol”: “NSE:BANKNIFTY24MAY49200CE”,

“Qty”: 480,

“Side”: 1,

“OrderType”: 4,

“LimitPrice”: 166.55,

“ProductType”: “BO”,

“OrderValidity”: “DAY”,

“StopPrice”: 165.55,

“DisclosedQty”: 0,

“OffLineOrder”: false,

“StopLoss”: 10,

“TakeProfit”: 31,

“OrderTag”: “CE1MinFUnApp”

}

Reference doc URL - API - FYERS

Please help me

Thanks

Hey @100680389404964459656

If you are placing a BO , please exclude the " Ordertag " from you’re inputs , then you should be able to place the orders successfully .

@WWhYB2qrsx - Thanks, It is working now.

One more question: Is order slicing is not applicable in Fyers API? Eg. If I place BO-SL-L with QTY 1500? Then it is rejecting. due to quantity.

Is there any way/parameter in API which I can use to place single order with more quantity, instead of multiple orders.

Thanks :grinning_face: