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

Getting error while updating Nifty data #1

Open
techdjay opened this issue Aug 13, 2021 · 2 comments
Open

Getting error while updating Nifty data #1

techdjay opened this issue Aug 13, 2021 · 2 comments

Comments

@techdjay
Copy link

Thanks for this wonderful project i was looking for it... getting errors while trying to import NIFTY Data.
Please look into it...
C:\Users\Jay\AppData\Local\Programs\Python\Python39\python.exe C:/amiCOM/main.py
13-Aug-21 10:23:34 - Getting data for ACC
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "C:\amiCOM\main.py", line 497, in ImportCur
tickerDf = tickerData.history(interval=interval_length, start=start_date, end=end_date)
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\site-packages\yfinance\base.py", line 156, in history
data = data.json()
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Jay\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@iamashwin99
Copy link
Owner

iamashwin99 commented Sep 7, 2021 via email

@iamashwin99
Copy link
Owner

Try the latest repo,
the issue was with yahoo finance changing how their API works,
It should be fixed now

Repository owner deleted a comment from jacky-xbb Mar 4, 2024
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

3 participants
@iamashwin99 @techdjay and others