Skip to content

Commit 029507f

Browse files
louise-pooleclaude
andcommitted
feat: add Binance WebSocket price provider
Add BinanceWsProvider that connects to Binance bookTicker streams with dynamic pair discovery, bid/ask-aware price resolution (direct, reverse, and intermediate routing), exponential backoff reconnection, and 60s re-sync for new tokens. Also uppercases normalize_symbol output for exchange compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42c7fc5 commit 029507f

File tree

7 files changed

+954
-4
lines changed

7 files changed

+954
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ num_cpus = "1.16"
135135
lazy_static = { version = "1.5.0", default-features = false }
136136
uuid = { version = "1", features = ["v4", "serde"] }
137137
tokio-stream = "0.1.18"
138+
tokio-tungstenite = { version = "0.28", features = ["native-tls"] }
138139
async-channel = "2.5.0"
139140
async-trait = "0.1"
140141
chrono = "0.4"

fynd-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ metrics.workspace = true
2929
typetag.workspace = true
3030
tycho-execution.workspace = true
3131
reqwest.workspace = true
32+
tokio-tungstenite.workspace = true
3233
alloy = { workspace = true, features = ["sol-types"] }
3334

3435
[dev-dependencies]

0 commit comments

Comments
 (0)