Protocol to handle delayed NSE delivery reports
BennyThadikaran opened this issue · 1 comments
BennyThadikaran commented
In rare cases, NSE may delay updating its delivery reports by a day or more. EOD2 will wait for all reports to update before syncing data. See issue #59 for details.
This is inconvenient as latest EOD data is not available because of a single report.
To remedy this issue and prevent future disruptions, here is the final protocol EOD2 will follow going forward:
- If delivery report if unavailable, continue with updating all other data. Empty string will be used in place of Delivery data. (This is interpreted as NAN values in Pandas/Numpy).
- Add the date to a pending list.
- On every sync, loop over this list and attempt to download and update the delivery report for that date.
- If update is successful, remove the date from the pending list.
- If delivery report is not updated after 5 days, abort any future attempts. (Thanks to user @rohit1409 for his inputs 👍 )
This feature has been implemented and will be updated on the repo soon. 😺
rohit1409 commented
Awesome, Thanks Benny 👍