WebSocket API
Real-time financial news streaming through WebSocket connections. Endpoint:wss://api.byul.ai/news-v2
Features
- Real-time news delivery
- Event-based messaging
- Subscription filtering
- Automatic reconnection
- Error handling
Authentication
Authenticate using your API key in the connection options:Events
Client to Server:news:subscribe- Subscribe to news streamnews:unsubscribe- Unsubscribe from streamnews:unsubscribe:all- Unsubscribe from all
auth:success- Authentication confirmednews:data- Real-time news articlesnews:subscribed- Subscription confirmednews:error- Error notifications
Plan Requirements
WebSocket streaming requires Pro or Enterprise plan.
Quick Example
Next Steps
Quickstart
Connect and start streaming
Examples
Code examples in multiple languages
Authentication
API key authentication setup
Connection
Connection management guide