How to place BO Order with Trigger Price

Hi Team,

I am using V3 python package of Fyers and to place a single order following keys to be assigned.

"symbol":"NSE:HCLTECH-EQ",
  "qty":1,
  "type":1,
  "side":1,
  "productType":"BO",
  "limitPrice":1291,
  "stopPrice":0,
  "validity":"DAY",
  "disclosedQty":0,
  "offlineOrder":false,
  "stopLoss":1250,
  "takeProfit":1320

Now, If I check on the Fyers App, there is an option to place a bracket order (BO) with trigger price field. How can I place the same with the keys mentioned above?

In which key should I mention TriggerPrice?

Note: I tried placing TriggerPrice in stopPrice key, but it resulted into error message as "stopPrice should be 0".

3 replies