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

nse_quote_meta fails if optionType is "-" or "fut" #55

Open
sudhakarsi opened this issue Feb 24, 2025 · 0 comments
Open

nse_quote_meta fails if optionType is "-" or "fut" #55

sudhakarsi opened this issue Feb 24, 2025 · 0 comments

Comments

@sudhakarsi
Copy link

Traceback (most recent call last):
File "C:\Users\sudhakar\prod\newOHL.py", line 80, in
print(nse_quote_meta(symbol = "RELIANCE",expiryDate="latest",optionType="-",strikePrice=0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\nsepython\rahu.py", line 321, in nse_quote_meta
metadata = i['metadata']
^
UnboundLocalError: cannot access local variable 'i' where it is not associated with a value

Traceback (most recent call last):
File "C:\Users\sudhakar\prod\newOHL.py", line 80, in
print(nse_quote_meta(symbol = "RELIANCE",expiryDate="latest",optionType="fut",strikePrice=0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\nsepython\rahu.py", line 323, in nse_quote_meta
return metadata
^^^^^^^^
UnboundLocalError: cannot access local variable 'metadata' where it is not associated with a value

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

1 participant