Skip to content

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

Description

@kamalmajhi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions