fix(hub): restore pre-WS quote path and relieve Gate/account contention
Two audit rounds after WS rollback: lighten hub options snapshot, cache hub balances without extra fetch_balance, soft-poll single-flight, and document fixes in R1/R2 reports. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10042,14 +10042,14 @@ def _hub_meta_bundle():
|
||||
|
||||
|
||||
def _hub_account_bundle():
|
||||
funding_capital, trading_capital = get_exchange_capitals(force=True)
|
||||
# 中控看板高频拉取:仅走余额缓存,避免额外 fetch_balance
|
||||
funding_capital, trading_capital = get_exchange_capitals(force=False)
|
||||
funding_usdt = round(funding_capital, FUNDS_DECIMALS) if funding_capital is not None else None
|
||||
trading_usdt = round(trading_capital, FUNDS_DECIMALS) if trading_capital is not None else None
|
||||
available = get_available_trading_usdt()
|
||||
return {
|
||||
"funding_usdt": funding_usdt,
|
||||
"trading_usdt": trading_usdt,
|
||||
"available_trading_usdt": round(available, FUNDS_DECIMALS) if available is not None else None,
|
||||
"available_trading_usdt": trading_usdt,
|
||||
"trading_day": get_trading_day(app_now()),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user