Documentation Index
Fetch the complete documentation index at: https://docs.benzinga.com/llms.txt
Use this file to discover all available pages before exploring further.
Server Endpoint
| Parameter | Value |
|---|---|
| Host | tcp-v1.benzinga.io |
| Port | 11337 |
| Protocol | TCP |
| TLS | Optional (disabled by default) |
Authentication
Connect using your username and API key:Command Line Options
| Option | Description |
|---|---|
-user | Your Benzinga TCP username |
-key | Your API access key |
-v | Enable verbose output |
Connection Flow
Connection States
Once connected, you’ll see initialization messages:TLS Configuration
By default, connections are made without TLS. To enable TLS encryption, use the appropriate flag provided by your client library.Connection Best Practices
Keep your connection alive to receive continuous updates. Implement reconnection logic to handle network interruptions gracefully.
Recommended Practices
- Implement Reconnection Logic: Network interruptions can occur; implement exponential backoff for reconnection attempts
- Handle Disconnections: Monitor connection state and reconnect when needed
- Buffer Messages: Process messages asynchronously to avoid blocking the receive loop
- Log Connection Events: Track connection status for debugging and monitoring
Example Connection
- Go
- Python
Next Steps
- Message Format - Learn about message structure
- Python Client - Full Python library documentation
- Go Client - Full Go library documentation