Skip to content
01TX
Insights

Trading Infrastructure

Connected but silent: catching a feed that stopped sending prices

3 min read

Most feed monitoring starts with the session. Is the FIX connection up, are heartbeats arriving, did the last logon succeed? Those are fair questions, but they only tell you the pipe is open. An LP can keep a session perfectly healthy while sending nothing useful on one pair, or on all of them.

It happens for dull reasons. A pricing engine behind the gateway stalls while the gateway keeps answering heartbeats. A subscription gets dropped quietly after a reconnect. An LP pulls prices on a pair around a news event and doesn't send anything to say so. From the bridge's side all of these look the same: connected, no ticks.

The check that catches this is simple. For each LP and each symbol, remember when you last received a price and compare that with the clock. If the gap is longer than a limit for that symbol, treat the price as stale and stop using it in the book.

One LP, same stretch of time, three viewsSession heartbeatEURUSD ticksUSDJPY tickslast tickmarked stalePer symbol check: time since last tick is over the limit for that pair.
IllustrationTick times are made up. The session heartbeat looks the same throughout, while one pair has stopped ticking and gets marked stale once the gap passes its limit.

One limit doesn't fit every pair

Five seconds of silence on EURUSD in a busy session is a problem. Five seconds on an exotic at three in the morning may be completely normal. A single global timeout either fires all the time on quiet pairs or reacts too late on the busy ones.

A better way is a limit per symbol that follows how often it normally ticks. Look at the typical gap between ticks over recent weeks, set the limit as a multiple of a high percentile of that gap, and give it a floor so it never gets absurdly small. It can also vary by time of day, since the same pair ticks very differently in Asia and at the New York open.

What to do when it trips

Mark that LP's price for that symbol as stale and take it out of the aggregated book. Don't leave the old quote in there, because a frozen price can look like the best bid until someone trades on it. Orders already in flight against it need a policy, and the safe default is to let them finish and send no new ones.

Alert with the symbol, the LP and how long it has been silent. If every symbol on one LP goes stale together, that's a different alert, because it points at the LP or the connection and away from a single pair. Resetting the session is a reasonable first automated step in that case, as long as it's rate limited so you don't hammer the LP with logons.

Bring the feed back only after fresh ticks arrive, and ideally a few of them, so one stray quote doesn't switch it on again. This is the same flapping problem we covered in the LP scoring article, and the same cure works: different thresholds on the way out and on the way in.

Record these events too. When someone asks why the price on a pair looked stuck last Tuesday, a log that says which LP went silent and when is a far better answer than a guess.

Building something that runs into these problems directly?