On the wire · 04:59:52 UTC Live 568 · Prematch 14,387 · Markets 56,856 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
Answer · TypeScript · WebSocket

TypeScript WebSocket client

Updated · PinnFeed · 1 min read

Answer: mirror the Node ws reconnect answer with typed message unions (ping | snapshot | delta | error). Builder (€99/mo) required for /v1/stream.

Sketch#

type Msg =
  | { type: 'ping' }
  | { type: 'snapshot'; part: number; final: boolean; events: unknown[]; markets: unknown[] }
  | { type: 'delta'; changes: unknown[] };

// npm i ws @types/ws

Full reconnect logic: Node answer.

Trial CTA#

Builder (€99/mo) for WebSocket and closing history. 3-day trial; card required, charged after day 3 unless cancelled. Free REST: signup. Related: answers hub, docs.

See also: Deno client, Bun client.

Questions people ask#

Is there an official SDK?#

No required SDK — plain WebSocket + JSON.

Can Deno/Bun clients work?#

Yes if they speak WebSocket and set the API key header or query.

Is this educational content for adults?#

Yes (18+).

The WebSocket plan: Builder, €99/mo.

Real-time Pinnacle odds pushed over one WebSocket, all 13 sports, every market, no-vig fair odds and closing lines. 3 days free, cancel in one click.

Form K-1 · Free API key

Get your free API key.

One field. No password, no card: enter your email, click the link we send, and your key is on screen.

By continuing you agree to the Terms and Privacy Policy.

One free key per email. Link valid for 20 minutes.