Every guide connects to the same authenticated WebSocket endpoint used across TweetStream: wss://ws.tweetstream.io/ws. Choose your stack for a working example and deployment notes.
这些指南按生产提醒管线来写。内容包括 API key 认证、断线重连、消息信封,以及如何把实时推文事件交给真正执行动作的系统。对交易团队来说,这套系统可能是机器人、Discord 频道、内部仪表盘或规则引擎。
想先了解协议格式,可以从 WebSocket 快速开始看起,再选择最贴近你部署环境的集成示例。各个示例接收的载荷相同;如果相应字段可用,其中会包含账号数据、文本、媒体上下文、代币检测、OCR 输出和其他富化数据。
Python + websockets
Stream TweetStream tweets into a Python trading bot with the `websockets` package, automatic reconnects, and envelope routing.
Discord webhooks
Forward filtered TweetStream alerts to a Discord channel through webhooks. You do not need a bot user or OAuth flow.