chore: align binance/okx env examples with gate and add sync script

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-06 02:31:06 +08:00
parent 4904a86e03
commit 3c0c62997f
4 changed files with 226 additions and 44 deletions
+14
View File
@@ -103,6 +103,20 @@ python scripts/sync_four_exchange_position_sizing_env.py --set-buffer 0.98
---
## 共用交易 / 关键位 / 轮询项
`scripts/sync_common_trading_env.py`:以 Gate `.env.example` 为基准,向**币安、OKX** 的 `.env` **追加缺失项**(不覆盖 API 密钥与已有自定义值)。
```bash
python scripts/sync_common_trading_env.py
python scripts/sync_common_trading_env.py --dry-run
python scripts/sync_common_trading_env.py --instances crypto_monitor_okx
```
补全项含:`RECONCILE_*``PRICE_REFRESH_SECONDS``KEY_*` 门控、`FORCE_CLOSE_*``KEY_SIZING_USE_ZERO_POSITION_SNAPSHOT` 等。
---
## 部署后重启
```bash