Alpaca Data Object Is Not Subscriptable
I am trying to write a python 3.6 script to use with the Alpaca trading API. I am trying to isolate price data for stocks from a json output. I cannot get the stock price put int
Solution 1:
You can do quote.price
instead of using the square bracket.
Solution 2:
Try this:
getattr(quote, 'price')
Post a Comment for "Alpaca Data Object Is Not Subscriptable"