jugaad-py / jugaad-data

Download live and historical data for Indian stock market
https://marketsetup.in/documentation/jugaad-data/
372 stars 147 forks source link

Not getting the Close Price of the stock it is always zero #78

Open kamalmajhi opened 4 months ago

kamalmajhi commented 4 months ago

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.