Please see our docs here.

Market Data Streaming - Documentation | Alpaca
Alpaca API lets you build and trade with real-time market data for free.