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.