Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bhavcopy ZIP file format change issue #59

Open
gaurav34065 opened this issue Sep 25, 2024 · 3 comments
Open

bhavcopy ZIP file format change issue #59

gaurav34065 opened this issue Sep 25, 2024 · 3 comments

Comments

@gaurav34065
Copy link

Looks like in here current format we're fetching as

https://www.bseindia.com/download/BhavCopy/Equity/EQ230924_CSV.ZIP

Needs to be updated like
https://www.bseindia.com/download/BhavCopy/Equity/BSE_EQ_BHAVCOPY_23092024_T0.ZIP

@sdabhi23
Copy link
Owner

hye @gaurav34065 is this change on BSE's end breaking the bhavcopy feature?

@gaurav34065
Copy link
Author

@sdabhi23 yes, seems like it's not able to find the bhavcopy. I tested this via below sample code

#!/bin/env python3

from bsedata.bse import BSE
from datetime import datetime, timedelta

b = BSE()
b = BSE(update_codes = True)

yesterday = datetime.now().date() - timedelta(days=1)
q = b.getBhavCopyData(yesterday)
print(q)

Getting below exception
bsedata.exceptions.BhavCopyNotFound: The BhavCopy file was not found on the BSE website. You are probably trying to get data for a trading holiday.

@sdabhi23
Copy link
Owner

Oh okay, I will try to release a fix sometime next week. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants