From 69230136948ae12d5775a02de0fded726ce7af68 Mon Sep 17 00:00:00 2001 From: Tacit Lab Date: Thu, 16 Apr 2026 20:21:45 +0800 Subject: [PATCH] fix: remove recvWindow from exchange_info wrapper Binance exchangeInfo endpoint does not accept recvWindow, causing RuntimeError when calling opportunity scan or any command that hits exchange_info(). Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 2 +- src/coinhunter/binance/spot_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2ab9807..487c22e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "coinhunter" -version = "2.0.7" +version = "2.0.8" description = "Binance-first trading CLI for balances, market data, opportunity scanning, and execution." readme = "README.md" license = {text = "MIT"} diff --git a/src/coinhunter/binance/spot_client.py b/src/coinhunter/binance/spot_client.py index 06fce25..b3e0029 100644 --- a/src/coinhunter/binance/spot_client.py +++ b/src/coinhunter/binance/spot_client.py @@ -44,7 +44,7 @@ class SpotBinanceClient: return self._call("account info", self._client.account, recvWindow=self.recv_window) # type: ignore[no-any-return] def exchange_info(self, symbol: str | None = None) -> dict[str, Any]: - kwargs: dict[str, Any] = {"recvWindow": self.recv_window} + kwargs: dict[str, Any] = {} if symbol: kwargs["symbol"] = symbol return self._call("exchange info", self._client.exchange_info, **kwargs) # type: ignore[no-any-return]