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

Unable to fetch derivative quotes for M&M #9

Closed
mdtanveer opened this issue Oct 9, 2021 · 5 comments
Closed

Unable to fetch derivative quotes for M&M #9

mdtanveer opened this issue Oct 9, 2021 · 5 comments

Comments

@mdtanveer
Copy link

mdtanveer commented Oct 9, 2021

In [33]: nsepython.nse_quote_ltp('M&M', 'latest', 'Fut')

KeyError Traceback (most recent call last)
in
----> 1 nsepython.nse_quote_ltp('M&M', 'latest', 'Fut')

c:\users<>\appdata\local\programs\python\python38\lib\site-packages\nsepython\rahu.py in nse_quote_ltp(symbol, expiryDate, optionType, strikePrice)
192
193 if(expiryDate=="latest") or (expiryDate=="next"):
--> 194 dates=list(set((payload["expiryDates"])))
195 dates.sort(key = lambda date: datetime.datetime.strptime(date, '%d-%b-%Y'))
196 if(expiryDate=="latest"): expiryDate=dates[0]

KeyError: 'expiryDates'

@mdtanveer
Copy link
Author

I think this is because we are doing fnolist check on purified symbol. The option chain scrapper works fine.

@thiyagaraaj
Copy link

issue happens with L&TFIN too. The trading symbol which has & in it has this problem

@radhay-samagra
Copy link

still facing this issue!!! was this resolved or fixed in any version?

@aeron7
Copy link
Owner

aeron7 commented Jun 15, 2022

Will fix it this weekend.
You can track here https://forum.unofficed.com/t/quotes-with-sign/943

@aeron7 aeron7 closed this as completed Jun 15, 2022
@palkar
Copy link

palkar commented Jul 27, 2022

Have made an edit @aeron7 please check and commit.

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

5 participants