-
Notifications
You must be signed in to change notification settings - Fork 117
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
Having issue with equity_history function #26
Comments
Can you please elaborate the issue? |
try running this, getting below error: ~/opt/anaconda3/lib/python3.8/site-packages/nsepython/rahu.py in equity_history(symbol, series, start_date, end_date) ~/opt/anaconda3/lib/python3.8/site-packages/nsepython/rahu.py in equity_history_virgin(symbol, series, start_date, end_date) ~/opt/anaconda3/lib/python3.8/site-packages/nsepython/rahu.py in nsefetch(payload) ~/opt/anaconda3/lib/python3.8/site-packages/requests/models.py in json(self, **kwargs) ~/opt/anaconda3/lib/python3.8/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) ~/opt/anaconda3/lib/python3.8/json/decoder.py in decode(self, s, _w) ~/opt/anaconda3/lib/python3.8/json/decoder.py in raw_decode(self, s, idx) JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
The new api call is already there in function equity_history_virgin. I uncommented it but still the api is not returning any data hence the error is coming. My best guess is there is some problem with authorization. I tried changing headers but still no progress. |
I have changed the headers and added a function to fetch cookies which may or may not be required (not sure). The equity_history function should work if the pull request gets merged. |
How can i get live data anyone plz tell me fast |
I do not use Github for Issue Fixation. Please do not open Issues here. Follow -> For Support and Beta Functions - https://forum.unofficed.com/t/nsepython-documentation/376/107 |
The previous api call is not working. Update it to new api call : https://www.nseindia.com/api/historical/cm/equity?symbol=TRIDENT&series=[%22EQ%22]&from=23-04-2023&to=23-05-2023
The text was updated successfully, but these errors were encountered: