Is there any api i can use to place entry, sl and target at same time??

Is there any api i can use to place entry, sl and target at same time??

Hi @truefriendjn-o07,

Yes, you can use the “BO” feature.

Please find the sample code below, reference: API - FYERS

data = {
    "symbol":"NSE:SBICARD-EQ",
    "qty":1,
    "type":1,
    "side":1,
    "productType":"BO",
    "limitPrice": 690,
    "stopPrice":0,
    "validity":"DAY",
    "stopLoss":10,
    "takeProfit":20,
    "disclosedQty":0,
    "offlineOrder":False
}

An option strike can be used.