This commit is contained in:
aaron 2026-03-30 14:05:39 +08:00
parent aeefb21f4e
commit 0d22be2c01

View File

@ -95,7 +95,10 @@ class BitgetLiveTradingService:
}
"""
balance = self.trading_api.get_balance()
logger.debug(f"[Bitget] get_balance 原始返回: {balance}")
if not balance:
logger.warning("[Bitget] get_balance() 返回空API 调用可能失败")
else:
logger.debug(f"[Bitget] get_balance 原始返回: {balance}")
usdt = balance.get('USDT') or balance.get('usdt') or {}
if not usdt: