Fix Binance options WS endpoint and connected flag.

Use fstream /public/stream with lowercase bookTicker streams; keep market connected if futures WS is up.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-25 12:18:01 +08:00
parent 586469482e
commit 89ea3336c8
2 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ class Settings(BaseSettings):
binance_fapi_base: str = "https://fapi.binance.com"
binance_eapi_base: str = "https://eapi.binance.com"
binance_futures_ws: str = "wss://fstream.binance.com/stream"
# 官方默认根路径 /eoptions;组合流用 /eoptions/stream?streams=
binance_options_ws: str = "wss://nbstream.binance.com/eoptions/stream"
# 欧式期权公共流(2025-12 起):/public/stream;旧 nbstream/eoptions 已 404
binance_options_ws: str = "wss://fstream.binance.com/public/stream"
binance_http_proxy: str = ""
perp_inst_id: str = "ETH-USDT-SWAP"