T0 detection: RTDS trade stream listener (~1s, wallet-attributed)
Polymarket's real-time data socket (wss://ws-live-data.polymarket.com, topic activity/type trades — undocumented but official: powers the site's live feed, spec'd in Polymarket/real-time-data-client) streams every platform trade with proxyWallet attribution. Probe 2026-07-10: median 0.8s delivery over 22k msgs, ~45/s at peak, zero drops in 45 min. RtdsListener: unfiltered subscribe (server-side filters broken, RTDC#34), client-side Set E match → the same on_wallet_activity funnel as the Alchemy push (locks internally). Capped-backoff reconnect forever; if the lib or stream is missing, detection degrades to the existing backstops (Alchemy ~3s, 300s poll, reconcile janitor) — never to zero. Heartbeat shows 'rtds up Ns' / '⚠ rtds down'. Paper role: ON by default (24h shadow run starts now). Live role: OFF until the shadow validates — RTDS_DETECT=1 enables. 5 stub paths pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ RUN apt-get update \
|
||||
# the CLOB rejects its order format — reads still work, so it stays for the
|
||||
# legacy read paths). Pinned to the beta the wrap+probe were validated on.
|
||||
RUN pip install --no-cache-dir py-clob-client==0.34.6 web3==7.16.0 \
|
||||
polymarket-client==0.1.0b16
|
||||
polymarket-client==0.1.0b16 websocket-client==1.9.0
|
||||
WORKDIR /app
|
||||
COPY host/ /app/host/
|
||||
CMD ["bash", "host/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user