Skip to content

feat(streams): support Binance price provider - #405

Merged
kartojal merged 2 commits into
mainfrom
feat/binance-price-provider
Nov 5, 2026
Merged

kartojal merged 2 commits into
mainfrom
feat/binance-price-provider

Conversation

@kartojal

@kartojal kartojal commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Allow CryptoPriceSpec(symbols=["btcusd"], provider="binance") and KnownPriceSource.BINANCE to opt into Binance spot prices. Recognize Binance in snapshots and live updates while preserving exact prices and existing defaults.

Verified against PolyBolt d362362ca8438f2741ba5acb8a4fe3ae91fc8da7 (README provider selector contract). Binance serves USDT pair closes verbatim under canonical USD symbols on price.crypto. Other price channels accept the pin and fall back to their configured owner; callers should inspect payload source.

Make the existing pending-reconnect test deterministic: a 30-second backoff cap can draw near-zero jitter and reconnect before the second subscription. Fix the delay in that test and wait for the reconnect timer to be queued. Production reconnect behavior is unchanged.

Validation: 331 related realtime price, CLOB market stream, and reconnect tests passed. Ruff check, format check, and Pyright passed. Full local non-integration run: 3582 passed; two unrelated wallet-default tests failed on live /deployed connection errors. No live authenticated price feed test was run.

@kartojal
kartojal marked this pull request as ready for review November 4, 2026 19:16
@kartojal
kartojal merged commit 93e9ec1 into main Nov 5, 2026
7 checks passed
@kartojal
kartojal deleted the feat/binance-price-provider branch November 5, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants