feat(okx): auto-open on box/convergence key breakout like Gate/Binance

Replace alert-only check_key_monitors with market open flow, add _market_open_for_key_monitor, and update docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-03 16:08:32 +08:00
parent a5f4ad8e97
commit e265c1b31a
4 changed files with 361 additions and 70 deletions
@@ -1,7 +1,7 @@
# 关键位监控说明(自动开仓 + 人工盯盘)
**适用:`crypto_monitor_okx`OKX 永续)**
本实例 **箱体/收敛** 为微信提醒 + 自行下单,**不自动市价开仓**;阻力/支撑规则与 Binance/Gate 相同。共享逻辑见 `key_monitor_lib.py`
箱体/收敛与 Binance、Gate 相同:**门控通过后自动市价开仓**(须 `LIVE_TRADING_ENABLED=true`)。阻力/支撑仍为微信提醒。共享逻辑见 `key_monitor_lib.py`
本文档与 `.env``check_key_monitors``add_key``_key_hard_checks``_process_key_rs_level_alert` 一致。