Overview
Subscribe to real-time news updates and receive instant notifications when new articles are published or existing articles are updated.Key Features
- Real-time Updates: Get instant notifications when news articles are published or updated
- Filter by Security: Subscribe to specific tickers or ISINs to receive only relevant news
- Comprehensive Data: Includes article content, author information, images, and associated securities
- Action Tracking: Monitor when articles are created, updated, or removed
Use Cases
- Build real-time news feeds for specific securities
- Create alerts for breaking news on portfolio holdings
- Aggregate news across multiple tickers
- Track news sentiment and volume for trading signals
Quick Start
Use the interactive WebSocket tester above to connect and test the stream in real-time.Connection URL
Query Parameters
| Parameter | Required | Description |
|---|---|---|
token | Yes | Your Benzinga WebSocket API token (bz.production***) |
tickers | No | Comma-separated list of ticker symbols (e.g., AAPL,MSFT) |
channels | No | Comma-separated list of news channels to filter |
Message Example
Message Actions
| Action | Description |
|---|---|
created / Created | New article published |
updated / Updated | Existing article modified |
deleted / Deleted | Article removed |
Interactive Commands
| Command | Description |
|---|---|
ping | Keep connection alive (responds with pong) |
replay | Replay up to the last 100 cached messages |
Best Practices
- Deduplication: Use the
idfield to prevent processing duplicate messages - Heartbeat: Send
pingcommands every 30-60 seconds to maintain connection - Error Handling: Implement reconnection logic with exponential backoff
- Filtering: Use ticker/channel filters to reduce bandwidth