Bracket Order (BO) support in Fyers API v3 – receiving "Invalid input" error

Title:
Bracket Order (BO) support in Fyers API v3 – receiving "Invalid input" error


Description:

Hi Team,

I am trying to place a Bracket Order (BO) using the Fyers API v3, but I am receiving an error response and would like clarification on whether BO is currently supported.

API Endpoint Used:
POST https://api-t1.fyers.in/api/v3/orders/sync

Request Payload:

{
  "symbol": "NSE:SBIN-EQ",
  "qty": 1,
  "type": 1,
  "side": 1,
  "productType": "BO",
  "limitPrice": 200,
  "stopPrice": 0,
  "disclosedQty": 0,
  "validity": "DAY",
  "offlineOrder": "False",
  "stopLoss": 5,
  "takeProfit": 5
}

Response Received:

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

Questions:

  1. Is productType: "BO" (Bracket Order) still supported in Fyers API v3?

  2. If supported:

    • Are there any additional required fields or constraints?

    • Is it restricted to specific segments or account configurations?

  3. If not supported:

    • Should we implement SL and target orders manually instead?

1 reply