VarunS2002 / Python-NSE-Option-Chain-Analyzer

The NSE has a website which displays the option chain in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock. It also continuously refreshes the Option Chain and visually displays the trend in various indicators useful for Technical Analysis.
GNU General Public License v3.0
391 stars 204 forks source link

Solution for Banknifty Zero value #7

Closed Sangram2905 closed 3 years ago

Sangram2905 commented 3 years ago

https://github.com/VarunS2002/Python-NSE-Option-Chain-Analyzer/blob/b72bdc94b359321dc08d342fd8a476b208597041/NSE_Option_Chain_Analyzer.py#L757

Bro, Found an solution for BankNifty Zero Value

on line no 757 replace

points : float = pe_values[0]['underlyingValue']

with

points : float = ce_values[0]['underlyingValue']

Keep the great work...

VarunS2002 commented 3 years ago

https://github.com/VarunS2002/Python-NSE-Option-Chain-Analyzer/blob/b72bdc94b359321dc08d342fd8a476b208597041/NSE_Option_Chain_Analyzer.py#L757

Bro, Found an solution for BankNifty Zero Value

on line no 757 replace

points : float = pe_values[0]['underlyingValue']

with

points : float = ce_values[0]['underlyingValue']

Keep the great work...

I already fixed that issue using an alternate method here: https://github.com/VarunS2002/Python-NSE-Option-Chain-Analyzer/commit/72f02093609167c9f367edacc44bd7b51bf88324 This fix is also present in the latest version : 4.0 I'm closing this issue now, you can re-open this if the issue still persists. Thanks man!