nsepython
nsepython copied to clipboard
The Unofficial Python Wrapper for NSEIndia API
**Issue:** can't able to fetch index history using **index_history** function **ERROR:** """ KeyError Traceback (most recent call last) [](https://localhost:8080/#) in () 4 start_date_r = start_date.strftime("%d-%b-%Y") 5 print(end_date_r, start_date_r) ----> 6...
function is_market_open return true even if is holiday today. Problem is in the line: https://github.com/aeron7/nsepython/blob/6f3a7285d39e874d6b677df0286a966e1982e56f/nsepython/rahu.py#L909 This only checks for first holiday from the nse_holidays() json result and return True by...
Added Verbose to not print heavy amount of data in terminal , anyone can set it to false or true upon their requirement if they need to show the timely...
Hello Team, Can you comment out print from local mode ? nsefetch fuction here
Update index_history with JSON payload as per the new NSE API Server. Changed the structure of the request sent to the server after testing it with the new NSE API....
` File .venv/lib/python3.12/site-packages/nsepython/rahu.py", line 484, in nse_get_fno_lot_sizes (code, name) = [x.strip() for x in line.split(',')[1:3]] ^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ` Seems like the...
`print(output)` is super annoying when fetching prices
[NSE Lot Sizes function throws error #42] 1.Adding two additional functions to address the said issue. 2.Latest FnO BhavCopy has lot size information and it is of .zip format file....
There are typos near "Windows 9 and 10" that should have been "Windows 10 and 11"
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'...