币本位开仓:张数留手续费缓冲,延长买币落账等待并修正51008文案

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 13:24:54 +08:00
parent ed3f4898dd
commit 9f3360e968
3 changed files with 20 additions and 5 deletions
+7 -1
View File
@@ -126,7 +126,13 @@ def open_coin_option_buy_full(
message="已买币,待开期权",
)
# 等余额落账
time.sleep(0.6)
time.sleep(1.5)
try:
from lib.exchange.okx_options_lib import invalidate_options_balance_cache
invalidate_options_balance_cache()
except Exception:
pass
coin_after = fetch_trading_coin_available(ex, underlying)
if coin_after is None:
rb = rollback_bought_coin_to_usdt(