On the wire · 05:08:48 UTC Live 585 · Prematch 14,345 · Markets 57,039 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
Risposta · WebSocket · Produzione

WebSocket Pinnacle stabile: prezzi stale e riconnessione

Aggiornato il · PinnFeed · 1 min di lettura

Risposta: tratta il socket come trasporto inaffidabile. (1) Rispondi a ogni ping con {"type":"pong"}. (2) Su close, backoff esponenziale + jitter, reiscriviti, svuota le map allo snapshot part === 1. (3) Traccia seq/ts e l'ultimo apply — se il silenzio supera il tuo SLA, forza la riconnessione. (4) Onora i codici (1001 deploy, 4008 slow consumer). Serve Builder (99 €/mese). Esempio Node: riconnessione.

Stale-price detection (client-side)#

import time

LAST = {"ts": 0.0}
STALE_SEC = 15  # your SLA — not a vendor latency claim

def on_message(msg):
    if msg["type"] in ("snapshot", "delta", "ping"):
        LAST["ts"] = time.time()

def watchdog():
    if time.time() - LAST["ts"] > STALE_SEC:
        raise TimeoutError("no frames; reconnect")

Quiet markets are normal — gate the watchdog on whether events you care about are live.

Failure modes#

SignalAction
No pong pathSocket dies ~60 s after missed ping
4008 slow_consumerNarrow filters or speed up handlers
1001 server_shutdownBackoff reconnect (deploy)
Snapshot without clearGhost markets from the previous session

We do not publish latency versus named competitors. Measure tick → your handler yourself.

CTA#

Builder. 3-day trial; card required, charged after day 3 unless cancelled. Docs: WebSocket.

Domande frequenti#

Lo scraping guest basta?#

Ban e board guest ritardate sono fallimenti comuni. Una chiave self-serve con codici di chiusura documentati è il percorso supportato.

Garantite aggiornamenti sotto il secondo?#

Documentiamo heartbeat e tipi di frame, non un RTT di marketing verso altri reseller. Strumenta end-to-end.

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.