One install. First verdict in sixty seconds.
Typed clients in Python, Node, and Go. Reconnect, auth rotation, and replay handled. You focus on what to do with each verdict, not how to keep the socket alive.
[01]Install
Pick a runtime. Run one command. Same protocol behind every binding. Switch languages without relearning the wire.
Python
v0.18.2
forecite
PyPI · 3.9+
Node
v1.4.0
@forecite/sdk
npm · Node 20+
Go
v0.9.1
github.com/forecite/sdk-go
Go modules · 1.22+
[02]The surface
A small, deliberate API. Six methods cover 95% of use. Everything else is composition.
client.score()
stable(text: str) -> Verdict
Score arbitrary text. Useful for ad-hoc back-tests.
stream.subscribe()
stable(tickers, threshold?) -> Iterator[Verdict]
Live verdicts, server-side filtered. Auto-reconnects.
stream.replay()
stable(cursor: int) -> Iterator[Verdict]
Replay missed verdicts from a sequence cursor.
client.verdicts()
stable(query) -> Page[Verdict]
Paginated query over historical verdicts.
agent.tool()
preview() -> McpTool
Drop-in MCP tool for any agent framework.
telemetry.latency()
stable(event_id) -> LatencyReport
Per-event timing audit, end-to-end.
[03]Type safety
Types follow you into the editor. Every method, every payload, every event is typed end-to-end. Autocomplete tells you what a verdict carries before you ship.
stream = VerdictStream(api_key="sk_live_…")
stream.
- subscribe(tickers, threshold?)
- replay(cursor: int)
- api_key: str
- reconnect(strategy?)
- score(text: str)
[04]CLI
A first-class command-line. Stream verdicts to your terminal, pipe them through jq, hand them to a cron. Every SDK ships with the same binary.
$ forecite login # one-time auth→ Opened browser for OAuth handshake…✓ Logged in as you@youremail.xyz $ forecite stream --tickers NVDA,META --threshold 0.616:01:03 NVDA +0.83 28 ms 8-K earnings beat16:01:08 META −0.52 31 ms ad-revenue miss16:02:14 NVDA +0.41 25 ms guidance reiteration $ forecite verdicts AAPL --since 1h --format json | jq '.[0]'$
Install. Subscribe. Trade.
Free tier gives you full SDK access, no credit card. Upgrade only when your throughput says you need to.