0

I am trying to get live stock data through my Alpaca API, however, when I run my script, nothing happens at all. Here is the script.

from alpaca.data.live import StockDataStream

async def quote_handler(quote):
    print(quote)

stream = StockDataStream("PKIFORGR382CRZU2SZ8S", "9FUOuP7cDYIi2xkE8GqEMsVtQbSEWfJgCNdzyqnX")
stream.subscribe_quotes(quote_handler, "TSLA")
stream.run()
MaxPC08
  • 92
  • 7

0 Answers0