Exit all positions when orders against open positions already placed

When I take positions in some scripts and targeted orders were placed .now if I want to exit all positions with exit all button what will happen?

1.my all positions will be zero or not?

2.my open orders also cancelled and positions exit ?

Pl. Guide me how to do and exit buttons limitation described .

Hi @bl_rathi,

If you have placed a target order, the “exit all positions” option will not work as there is a pending order.

Hi @desh.5sgxdaeh
bro at symbol_text please write your symbol name.

Show me your code which you are getting error

Don’t change anything except your access token. Remove your access token then show me

Hi @desh.5sgxdaeh

Your symbol_text is wrong

Correct is symbol_text=“NSE:BANKNIFTY23O1143700PE-INTRADAY”

means with symbol you have to give the product type if in your case it is margin then replace intraday by margin

Now try and let me know.

Hi @desh.5sgxdaeh
It is clearly mentioned in the docs that your symbol name will be adding with product type.
I Checked all sample code as well.

Please let me know where you got issue.

It is mentioned there @desh.5sgxdaeh
https://myapi.fyers.in/docsv3#tag/Other-Transactions/paths/~1OtherTrans/options