chore: add script to sync position sizing env across four exchanges

sync_four_exchange_position_sizing_env.py appends missing POSITION_SIZING_MODE and FULL_MARGIN_BUFFER_RATIO, optional --set-mode/--set-buffer; docs updated.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 08:30:44 +08:00
parent f7bac11694
commit 0456d5fa2c
3 changed files with 193 additions and 1 deletions
+3 -1
View File
@@ -36,6 +36,8 @@ FULL_MARGIN_BUFFER_RATIO=0.98
```bash
git pull
# 四所 .env 增加 POSITION_SIZING_MODE=risk 或 full_margin
# 四所 .env 补全计仓项(已有值不覆盖;缺项则 risk + 0.98)
python scripts/sync_four_exchange_position_sizing_env.py
# 无仓后切换全仓:python scripts/sync_four_exchange_position_sizing_env.py --set-mode full_margin
pm2 restart crypto-monitor-binance crypto-monitor-okx crypto-monitor-gate crypto-monitor-gate-bot
```