Using Fyers API, can I exit positions using tags?

Suppose I enter a trade where I buy/short multiple scripts.

Now while placing the order I give them a tag, say, "mytradetag".

Is there a way to exit positions by using that tag?

Something like this? -

curl -H "Authorization:app_id:access_token" -H "Content-Type: application/json" -X DELETE -d '{"tag":"mytradetag"}' https://api-t1.fyers.in/api/v3/positions

1 reply