ruvector/crates/ruvector-kalshi/tests
ruvnet c051b56e82 feat(kalshi): live WS, brain integration, coherence/attention strategies, CI
ruvector-kalshi:
- ws_client: tokio-tungstenite + futures-util. connect() signs upgrade
  with RSA-PSS-SHA256; subscribe() sends a typed command; pump_frames()
  routes every text frame through FeedDecoder into an mpsc<MarketEvent>
  channel; reconnect_forever() does exponential backoff up to 30s.
- brain: pi.ruv.io client. SharedMemory::market_resolution builds a
  redacted pattern memory; BrainClient::share POSTs with Bearer auth to
  /v1/memories. Debug never leaks key material.
- URL migration: Kalshi moved from trading-api.kalshi.com to
  api.elections.kalshi.com; defaults updated. GCS secret bumped.
- tests/live_smoke.rs: #[ignore]-gated GET /exchange/status. Verified
  live response: 200 OK, {"exchange_active":true,"trading_active":true}.

neural-trader-strategies:
- coherence_arb: pair-wise price divergence arbitrage. Configure
  (reference, mirror) symbol ids; emit YES buy on mirror when the price
  gap exceeds min_divergence_bps. Quarter-Kelly sizing.
- attention_scalper: multi-level order-book imbalance with geometric
  level decay and EMA smoothing; emits a short YES or NO position when
  the smoothed signal crosses abs_threshold. Deterministic, no ML dep.

CI:
- .github/workflows/kalshi-nightly.yml: unit tests, offline validator,
  paper-trade example, and live /exchange/status smoke under --ignored.

Tests: 57 unit (ruvector-kalshi 36, neural-trader-strategies 21) + 1
live smoke. All green against the real Kalshi endpoint.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-20 16:29:02 -04:00
..
live_smoke.rs feat(kalshi): live WS, brain integration, coherence/attention strategies, CI 2026-04-20 16:29:02 -04:00