vsjha18 / nsetools

Realtime Data From National Stock Exchange (India)
http://nsetools.readthedocs.io
MIT License
807 stars 421 forks source link

Getting Lot Sizes #57

Closed aeron7 closed 3 years ago

aeron7 commented 4 years ago

nse.get_fno_lot_sizes() is not returning the desired output. Anything is broken or NSE changed anything from their side?

bowenr commented 4 years ago

I also noticed this, I am just getting a dictionary return with codes as keys and standard name as values. And the code in this function is confusing because it seems as though there is no intention for it to return the lot size... Check these lines in nse.py: (code, name) = [x.strip() for x in line.split(',')[1:3]] res_dict[code] = int(name)

aeron7 commented 3 years ago

Finally, I made it myself ground up. Refer - https://aeron7.github.io/nsepython/documentation/nsetools.html#getting-lot-sizes