fix(gate): align fund transfer between gate and gate_bot

- Extract shared gate_transfer_lib and global transfer form on all pages

- Block auto-transfer when trend pullback plans have open positions

- Redirect manual transfer back to the current page after submit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-07 10:01:32 +08:00
parent bee9539852
commit 67cc084347
8 changed files with 159 additions and 73 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
| 余额 **低于** `AUTO_TRANSFER_AMOUNT` | 从 `AUTO_TRANSFER_FROM`(默认 funding)划入差额 |
| 余额 **高于** `AUTO_TRANSFER_AMOUNT` | 将多余划回 `AUTO_TRANSFER_FROM` |
| 与目标相差 &lt; 0.01U | 跳过,不写划转 |
| 存在 **active** 持仓(`order_monitors` | **不划转**,写账簿 `skipped`,并**企业微信**说明「持仓中,本次资金无划转」 |
| 存在 **active** 持仓(`order_monitors`,或 Gate 趋势回调已开仓计划 | **不划转**,写账簿 `skipped`,并**企业微信**说明「持仓中,本次资金无划转」 |
## 配置示例(目标 50U