Closing_price update in getHoldings API

Hi there,
I am fetching holdings data Portfolio → getHoldings API on Sunday. The closing_price I receive in the response is that of Thursday. Please refer to the screenshot attached.
Should I not expect the closing price of Friday?
The last_price will contain this data but ideally closing_price should be updated after 3:30 everyday right?
Hope to hear from you soon.
Nishit Mangal

Hey Nishit,
I think you are confused about the close_price on Portfolio → getHoldingsAPI.
The Docs for Portfolio → getHoldingsAPI clearly states that close_price will provide you with the “Closing price of the instrument from the last trading day”.

YES, by using this API you cannot expect the closing price of Friday by making an api call on sunday.

But I didn’t have any idea on it.

The last_price will contain this data but ideally closing_price should be updated after 3:30 everyday right?

but I think the closing price will be updated on the next trading session as close_price refers to previous day closing price.

Last trading day in Sunday will be Friday only right? Though I understand what’s happening there but not sure about why will that happen.
@Pradeep_Jaiswar your take on this?

@Nishit, I’ll get back to you with an answer. As per my understanding, it should reflect Friday’s closing when requested on a Sunday. I’ll look into this further to determine if we need to address it or if it occurs due to a specific edge case.

Thanks for the acknowledgement. Looking forward to it

Hi @Pradeep_Jaiswar any update on this?

@Ketan @Ketan_Gupta can you please look into it.

Sorry for the delayed response.

The closing price is from the T-1 trading day; T-1 refers to Thursday. This value updates when the first tick arrives on Monday while maintaining the T-1 log.

After discussing this with the team, we confirmed that this setup intentionally ensured that T-1 was maintained accurately. Another use case is that it allows users to calculate the difference in the last traded price (LTP) from the previous trading day and analyze metrics like percentage gain or loss. As mentioned, the data updates when new ticks arrive on the next trading day. Since Saturday and Sunday are non-trading days, we intend to keep it like that.

2 Likes