This commit is contained in:
薇薇安 2026-02-15 16:14:03 +08:00
parent fe3da9dfb5
commit 94ba0ab5a4

View File

@ -836,7 +836,7 @@ class BinanceClient:
if last_error: if last_error:
err_msg = _format_exception(last_error) if isinstance(last_error, Exception) else str(last_error) err_msg = _format_exception(last_error) if isinstance(last_error, Exception) else str(last_error)
logger.error(f"获取持仓信息最终失败 (已重试 {retries} 次): {err_msg}") logger.warning(f"获取持仓信息最终失败 (已重试 {retries} 次): {err_msg}")
return [] return []
async def get_recent_trades(self, symbol: str, limit: int = 50) -> List[Dict]: async def get_recent_trades(self, symbol: str, limit: int = 50) -> List[Dict]:
@ -877,7 +877,7 @@ class BinanceClient:
logger.error(f"获取成交记录失败 {symbol}: {_format_exception(e)}") logger.error(f"获取成交记录失败 {symbol}: {_format_exception(e)}")
return [] return []
if last_error: if last_error:
logger.error(f"获取成交记录失败 {symbol} (已重试 {attempts_made} 次): {_format_exception(last_error)}") logger.warning(f"获取成交记录失败 {symbol} (已重试 {attempts_made} 次): {_format_exception(last_error)}")
return [] return []
async def get_symbol_info(self, symbol: str) -> Optional[Dict]: async def get_symbol_info(self, symbol: str) -> Optional[Dict]: