Sample Python Code for Streaming Data

Is there a place where I can find functioning, sample Python codes for streaming market data?



Found it inside the alpaca-trade-api-python package:

Very useful.

1 Like

Yup, glad you found it. Let us know what kind of tutorial would be helpful, any time!

Hey guys, is there any other way for streaming data without the polygon API? I found IEX API a good alternative but was unable to stream data from it as far as I tried to. I’m trying to run Hitoshi’s scalping algo as a non-US citizen and that’s is preventing the code to run.

I would love to see a simple tutorial that takes a list of symbols and shows how to get quote prices from them, maybe print the symbol and quote prices to the screen for beginners.

Thanks if anyone would be willing to help, never used stream before and this would be very helpful!