Update to latest version for AutoCoinTrader2
This commit is contained in:
@@ -187,14 +187,15 @@ def get_upbit_balances(cfg: RuntimeConfig) -> dict | None:
|
||||
result: dict[str, float] = {}
|
||||
for item in balances:
|
||||
currency = (item.get("currency") or "").upper()
|
||||
if currency == "KRW":
|
||||
continue
|
||||
try:
|
||||
balance = float(item.get("balance", 0))
|
||||
except Exception:
|
||||
balance = 0.0
|
||||
if balance <= MIN_TRADE_AMOUNT:
|
||||
|
||||
# KRW는 극소량 체크 건너뜀 (매수 잔고 확인용)
|
||||
if currency != "KRW" and balance <= MIN_TRADE_AMOUNT:
|
||||
continue
|
||||
|
||||
result[currency] = balance
|
||||
|
||||
with _cache_lock:
|
||||
|
||||
Reference in New Issue
Block a user