If your forex watchlist only needs the latest quote at each redraw, REST polling may be enough. If it must detect a spread that widens and narrows between two polls, you need an update stream with documented coverage, or another source that records those changes. Handle the alert on incoming updates and let the screen redraw at its own pace.
The difference is what happens between samples
Suppose EUR/USD is 1.1000 bid and 1.1001 ask at time zero. At 400 ms the ask rises to 1.1005 and at 820 ms it falls back to 1.1001. A client polling at 0 and 1,000 ms sees a one-pip spread twice. A consumer that receives all three updates also observes the five-pip spread, above an example four-pip threshold. Neither client needs to render three times.
A faster poll might catch this particular event. It cannot guarantee detection of a shorter event or one that falls between the new sample points. This is loss by sampling, not proof that the provider returned a wrong quote.
Replay the same input through both consumers
In this synthetic EUR/USD replay, prices are represented in whole pip units. The sampled consumer takes the latest row at or before each observation; the update consumer evaluates every row supplied to it.
from bisect import bisect_right def capture(changes, sample_times, threshold=4): times = [row[0] for row in changes] def wide(row): _, bid, ask = row return ask - bid >= threshold snapshots = [changes[i] for t in sample_times if (i := bisect_right(times, t) - 1) >= 0] return any(map(wide, snapshots)), any(map(wide, changes)) example = [(0, 11000, 11001), (400, 11000, 11005), (820, 11000, 11001)] assert capture(example, [0, 1000]) == (False, True) assert capture(example, [0, 500, 1000]) == (True, True) Keep alerts separate from rendering
For a screen, keep one latest quote per pair. For an alert, evaluate the incoming update before the UI can overwrite it with a newer value. If the provider sends partial quotes, follow its rules for assembling both sides. Never treat a missing ask as zero.
TickDB’s Forex Market Data API page documents REST and WebSocket access and bid/ask quotes. Use the same authorized pair for a comparison. Check which updates your subscription emits, whether updates can be conflated, and what you can detect after a gap. The replay is synthetic; it does not measure delivery or latency, and a connected socket alone does not imply complete event history.
Use a snapshot to answer “what is the latest quote now?” Use verified updates to answer “did the spread cross this level at any point?” The watchlist’s refresh rate does not decide the transport.

