On the wire · 05:09:06 UTC Live 584 · Prematch 14,344 · Markets 57,018 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
Respuesta · WebSocket · Producción

WebSocket Pinnacle estable: precios stale y reconexión

Actualizado el · PinnFeed · 1 min de lectura

Respuesta: trata el socket como transporte poco fiable. (1) Responde a cada ping con {"type":"pong"}. (2) En close, backoff exponencial + jitter, resuscríbete, vacía los maps en snapshot part === 1. (3) Sigue seq/ts y el último apply — si el silencio supera tu SLA, fuerza la reconexión. (4) Honra los códigos (1001 deploy, 4008 slow consumer). Hace falta Builder (€99/mes). Ejemplo Node: reconexión.

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.

Preguntas frecuentes#

¿Basta el scraping de invitado?#

Los bans y tableros de invitado retrasados son fallos habituales. Una clave self-serve con códigos de cierre documentados es la vía soportada.

¿Garantizáis actualizaciones sub-segundo?#

Documentamos heartbeats y tipos de frame, no un RTT de marketing frente a otros revendedores. Instrumenta de extremo a extremo.

¿Contenido educativo para adultos?#

Sí (18+).

Contenido educativo para mayores de 18 años. Sin pronósticos ni ganancias garantizadas. En España, apuesta solo con operadores con licencia de la DGOJ.

El plan WebSocket: Builder, 99 €/mes.

Cuotas de Pinnacle en tiempo real por un único WebSocket: los 13 deportes, todos los mercados, cuotas justas sin margen y cuotas de cierre. 3 días gratis y cancelas 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.