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 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "coinhunter"
|
name = "coinhunter"
|
||||||
version = "2.0.7"
|
version = "2.0.8"
|
||||||
description = "Binance-first trading CLI for balances, market data, opportunity scanning, and execution."
|
description = "Binance-first trading CLI for balances, market data, opportunity scanning, and execution."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = {text = "MIT"}
|
license = {text = "MIT"}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class SpotBinanceClient:
|
|||||||
return self._call("account info", self._client.account, recvWindow=self.recv_window) # type: ignore[no-any-return]
|
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]:
|
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:
|
if symbol:
|
||||||
kwargs["symbol"] = symbol
|
kwargs["symbol"] = symbol
|
||||||
return self._call("exchange info", self._client.exchange_info, **kwargs) # type: ignore[no-any-return]
|
return self._call("exchange info", self._client.exchange_info, **kwargs) # type: ignore[no-any-return]
|
||||||
|
|||||||
Reference in New Issue
Block a user