Algostream_normalization.Cross_feedCross-feed price-basis tracker.
For two feeds A and B reporting the *same canonical symbol* (e.g. Binance BTCUSDT vs Coinbase BTC-USDT), the basis is (price_a - price_b) / mid. Rolling mean / variance of the basis turns into a Z-score; large |Z| flags an anomaly without the false-positives that fixed-threshold checks produce.
NOTE: never pair across non-equivalent quotes — Binance "BTCUSDT" against Coinbase "BTC-USD" is a USDT-vs-USD basis, not a "Binance vs Coinbase" inconsistency. Construct a separate t per (canonical_pair, feed_pair) accordingly.