fix(binance): read funding balance from wallet/balance API

Prefer sapi asset/wallet/balance Funding USDT (matches App), merge get-funding-asset and ccxt as fallbacks, and add optional BINANCE_FUNDING_INCLUDE_SPOT plus a richer verify script.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 07:12:28 +08:00
parent dd74770c66
commit b1952dcd6e
3 changed files with 132 additions and 22 deletions
+2
View File
@@ -48,6 +48,8 @@ UPLOAD_DIR=static/images
# 已废弃:资金账户仅显示交易所 funding 余额,不再读取此变量
# TOTAL_CAPITAL=100
# 页顶「资金账户」默认仅 Binance Funding 钱包;若 USDT 主要在现货,可改为 true 合并 Spot
# BINANCE_FUNDING_INCLUDE_SPOT=false
# 每天起始基数(U
DAILY_START_CAPITAL=30
# 日内回撤后基数(U