On the wire · 04:50:35 UTC Live 550 · Prematch 14,382 · Markets 56,978 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
Risposta · TypeScript · WebSocket

Client WebSocket TypeScript

Aggiornato il · PinnFeed · 1 min di lettura

Risposta: riprendi la risposta di riconnessione Node ws con union tipizzate (ping | snapshot | delta | error). Builder (99 €/mese) richiesto per /v1/stream.

Schema#

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

// npm i ws @types/ws

Logica di riconnessione completa: risposta Node.

CTA#

Builder (99 €/mese). Prova 3 giorni; carta richiesta. REST gratis: signup.

Domande frequenti#

C'è un SDK ufficiale?#

No — WebSocket + JSON bastano.

Deno/Bun funzionano?#

Sì se parlano WebSocket e impostano la chiave in header o query.

Contenuto educativo per adulti?#

Sì (18+).

Contenuto educativo per maggiorenni (18+): non pronostici né promesse di guadagno. In Italia scommetti solo con operatori autorizzati ADM.

Il piano WebSocket: Builder, 99 €/mese.

Quote Pinnacle in tempo reale su un unico WebSocket: tutti i 13 sport, tutti i mercati, quote eque senza margine e quote di chiusura. 3 giorni gratis, disdici con un clic.

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.