Not getting the Close Price of the stock it is always zero
Opened this issue · 0 comments
kamalmajhi commented
Issue description
see below the close price is showing zero.
'priceInfo': {
'lastPrice': 343.5,
'change': -2,
'pChange': -0.5788712011577424,
'previousClose': 345.5,
'open': 347.5,
'close': 0,
'vwap': 345.47,
'lowerCP': '310.95',
'upperCP': '380.05',
'pPriceBand': '10',
'basePrice': 345.5,
'intraDayHighLow': {
'min': 343.3,
'max': 347.95,
'value': 343.5
},
Example Code
live_instance = NSELive()
q = live_instance.stock_quote('AWL')
# print(q)
current_open = q['priceInfo']['open']
current_close = q['priceInfo']['close']
print(current_close)
Error snippet
error is not showing the closing price.