Lightstreamer client
nexus-trader/src/nexus_trader/capture/stream.py::MarketStreamer
lightstreamer-client-lib2.2.2. No transport is forced, so the client negotiates and lands on WS-STREAMING.- MERGE subscriptions in chunks of at most 20 items. IG once refused a 35-item subscription while the connection still reported healthy.
- Error 21 triggers a one-time switch between the PRICE and MARKET subscription schemes.
- Ticks are stamped with our own UTC receipt time; IG's update time has no date.
- A second watchdog checks bars are being written, after the stream showed CONNECTED for about 11 hours while writing nothing.
nexus-trader/requirements-lock.txt
- The client runs on aiohttp. A parser CVE there mattered because the feed parses IG traffic all day, so the patched version is pinned ahead of the default.