1
This commit is contained in:
parent
fe3da9dfb5
commit
94ba0ab5a4
|
|
@ -836,7 +836,7 @@ class BinanceClient:
|
|||
|
||||
if 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 []
|
||||
|
||||
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)}")
|
||||
return []
|
||||
if last_error:
|
||||
logger.error(f"获取成交记录失败 {symbol} (已重试 {attempts_made} 次): {_format_exception(last_error)}")
|
||||
logger.warning(f"获取成交记录失败 {symbol} (已重试 {attempts_made} 次): {_format_exception(last_error)}")
|
||||
return []
|
||||
|
||||
async def get_symbol_info(self, symbol: str) -> Optional[Dict]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user