Not able to exit positions by API "Exit All Positions" by tag

Hi Team,
I have placed an order “241125040127711” with a tag “SINGLE_STRANGLE” yesterday.
Today, I tried to exit the position using the below API end point:
https://api.upstox.com/v2/order/positions/exit?tag=SINGLE_STRANGLE

Got following response:

“status”: “error”,
“errors”: [
{
“errorCode”: “UDAPI1111”,
“message”: “No open position available to exit”,
“propertyPath”: null,
“invalidValue”: null,
“error_code”: “UDAPI1111”,
“property_path”: null,
“invalid_value”: null
}
]
I can see that the position is still there in open status in app.
Not sure where I am going wrong, please help.

Note: This exit all position by tag works fine if I exit the same day.

Followed Article:

Hi @Ranu_Pal, It appears that you hold a NIFTY contract dated 24th November, which has expired. As a result, the order tag associated with the expiry date of 24th November is no longer valid, preventing you from exiting the position using the tag. However, the Exit all without tag option will still work, as it does not apply any restrictions or filters.

Hope this clarifies. Thank you!

@Anand_Sajankar Thanks for quick revert.
Below are the script details:
Instrument_key: NSE_FO|47612
tradingSymbol: NIFTY24NOV24900CE

It is still in my open position, the expiry of contract is on 28 Nov 2024

@Ranu_Pal Thank you for bringing this to our attention. We are currently investigating exit position scenario with carry-forward positions and will provide an update as soon as we have more information.

@Anand_Sajankar
Just wanted to check if there is any update?

@Ranu_Pal We have received an update on this. This is a valid scenario. Please refer to the section below for further details.

Thanks!

1 Like