nsepython icon indicating copy to clipboard operation
nsepython copied to clipboard

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

Open sudhakarsi opened this issue 10 months ago • 0 comments

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

sudhakarsi avatar Feb 24 '25 14:02 sudhakarsi