Odds337 API · REST vs WebSocket

Polling vs the stream

One minute of one price. TAB moves the Lakers five times. A script polling /odds every 15 seconds sees some of those moves, late. The WebSocket sends every move within about a second, for less.

TAB · Los Angeles Lakershead to head · Boston Celtics v Los Angeles Lakers 0:00

REST, polling every 15s

0/5moves seen
–worst delay
0tokens this minute

    

WebSocket stream

0/5moves seen
–worst delay
0tokens this minute

    
Step 1 of 4

Example price moves. Frame shapes, the 15-second heartbeat and token costs are the real ones: /odds is 1 token a call; a WebSocket is 1 token a minute connected plus 1 per subscribed event per minute.