Not able to get up-to-date quantity using PortfolioApi

I am using the get_holdings function of PortfolioApi to get all the holdings in my API with up-to-date quantity.
With this, I am getting the quantity provided is not accurate.
Earlier in the day I sold all holdings of stock and Upstox UI is correctly showing Net Qty as 0 but when I access the same using the API I get ‘quantity’ as 6 (quantity that I was holding earlier) and ‘t1_quantity’ as 6 in the response

I was expecting ‘quantity’ to be 0

Let me know how to fix this ?

@VJ_Trader This shouldn’t be happening. Could you please provide your UCC and the date and time of your call so we can investigate?