HFT-ish Order Book Imbalance Algorithm Using Streaming

This algorithm is an active, daytrading strategy that captures small moves frequently using order book imbalance as an indicator. The idea is not secret or new - it’s a strategy that has been studied in academia and the industry.

This example also gives you a good idea of how to use streaming data in an algorithm’s code.

Code on GitHub


Suggestions or questions?
We're always happy to hear from you. You can contribute to these docs on GitHub, or you can join our Community Forum or Community Slack to get help from other community members and the Alpaca team.