The general live stream can also carry thesis events with
events=theses, together with your users’ trades, but it needs the Pro plan. For theses only, use this stream.Connecting
string
required
Your API key.
api_key works too, or an Authorization Bearer header.string
default:"global"
global for theses of all platforms, instance for only the theses written on your instance (see Reach).string
Your Instance ID. Only needed when your account has several instances.
ready. Then subscribe with JSON frames.
Frames you send
Every subscribe or unsubscribe is answered with
subscribed, the complete current subscription.
Events you receive
ready
subscribed
thesis
Example: theses as chart markers
Subscribe to the tokens on screen and drop a marker at each thesis’screated_at, coloured by stance, labelled with the author.
chart.addMarker and chart.removeMarker stand for your charting library. For markers of theses posted before the page opened, load them with GET /v1/theses.
Staying connected
When you send nothing for 30 seconds the server sends aheartbeat and checks that your key is still valid; a revoked or disabled key ends the connection. Reconnect with a short backoff, send your subscribe frame again, and fill any gap with GET /v1/theses.

