I am having an issue while trying to retrieve current price. I know this is not specifically current price, but it would be good enough for me if it worked. I am using the following line:
self.currentPrice = float(self.load_historical_data(ticker,interval=1,limit=1).close)
It is throwing an error:
in getattr
return object.getattribute(self, name)
AttributeError: ‘DataFrame’ object has no attribute ‘close’
I am looking for a way to address the issue I am having, or perhaps a more creative way to retrieve last trade price or current price.
Thanks