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:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user