Sample Python Code for Streaming Data

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

Thanks.

2 Likes

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.
Thanks