Need help with multiorder

Hi,

How to sync each response with the stock request sent in place_multi_order() method. E.g. for below object, how to determine which id belongs to which request in the array:

[{

"symbol":"NSE:SBIN-EQ",

"qty":1,

"type":2,

...........

},

{

"symbol":"NSE:IDEA-EQ",

"qty":1,

"type":2,

.............

}]

Hi @LYddsM1o69,

After placing an order, all responses will be provided sequentially based on the parameters passed.

Alternatively, while placing an order, you can pass order tags (Ref: API - FYERS). Use the “Orderbook” to reconfirm the details.

@naresh_janagama Thanks for the help, will check it out.

Can you pls. help me with one more thing. I want to place an order on strictly a certain price, not below / above that. I.e. sell HDFCBANK only if it reaches 1620. My object is something like this, is it good to go? My goal is to execute the trade on a certain price, not above or below that. Below object is of BO type so that I can place my SL and target together.

[

{

"symbol": "NSE:HDFCBANK-EQ",

"qty": 1,

"type": 1,

"side": -1,

"productType": "BO",

"limitPrice": 1620,

"stopPrice": 0,

"disclosedQty": 0,

"validity": "DAY",

"offlineOrder": false,

"stopLoss": 1630,

"takeProfit": 1600 

}

]

Hi Jatin,

Yes, it’s possible with an SL-L order.

In this example, you need to set 1620 as the “Stop Price” and the Limit Price slightly below it (at least one tick lower).