af0fbc3e6f
Reject 3.12+ in setup_env to avoid bad marshal data on new servers. Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
1.9 KiB
Markdown
55 lines
1.9 KiB
Markdown
# 复盘交易系统(crypto_monitor_user · 用户版)
|
||
|
||
多交易所 USDT 永续监控与中控聚合。本仓库为**用户发行版**:含部署文档与基础说明;核心业务逻辑以加密形式交付,不以策略源码文档形式公开。
|
||
|
||
**远程仓库**:[https://git.bz121.com/dekun/crypto_monitor_user.git](https://git.bz121.com/dekun/crypto_monitor_user.git)
|
||
**授权服务**:[https://sq.bz121.com/](https://sq.bz121.com/) · 说明见 [docs/license.md](./docs/license.md)
|
||
|
||
---
|
||
|
||
## 部署环境
|
||
|
||
| 项 | 约定 |
|
||
|----|------|
|
||
| 系统 | **优先 Ubuntu 22.04**(自带 Python 3.10);24.04 须用 Python 3.10,勿用 3.12 |
|
||
| Python | **3.10 / 3.11**(推荐 3.10;加密 `lib/` 与 3.12 不兼容) |
|
||
| 用户 | root |
|
||
| 路径 | `/opt/crypto_monitor_user` |
|
||
| 进程 | PM2 |
|
||
|
||
详情:[docs/ubuntu-server.md](./docs/ubuntu-server.md) · [deploy/README.md](./deploy/README.md)
|
||
|
||
```bash
|
||
curl -fsSL https://git.bz121.com/dekun/crypto_monitor_user/raw/branch/main/deploy/manage.sh | bash
|
||
# 或
|
||
cd /opt
|
||
git clone https://git.bz121.com/dekun/crypto_monitor_user.git crypto_monitor_user
|
||
cd /opt/crypto_monitor_user
|
||
bash deploy/manage.sh
|
||
```
|
||
|
||
部署后请配置仓库根目录 **`license.env`**(从 `license.env.example` 复制),打开任意实例或中控的 **`/license`** 激活。
|
||
|
||
运维:[备份与恢复.md](./备份与恢复.md) · [docs/env配置说明.md](./docs/env配置说明.md)
|
||
|
||
---
|
||
|
||
## 目录
|
||
|
||
| 目录 | 说明 |
|
||
|------|------|
|
||
| `crypto_monitor_binance/` | Binance 实例 |
|
||
| `crypto_monitor_gate/` | Gate 实例 |
|
||
| `crypto_monitor_okx/` | OKX 实例 |
|
||
| `manual_trading_hub/` | 中控 |
|
||
| `lib/` | 共用模块(发行版核心逻辑已加密) |
|
||
| `deploy/` / `docs/` | 部署与基础文档 |
|
||
|
||
---
|
||
|
||
## 安全
|
||
|
||
- 勿将 `.env`、`license.env`、API Secret 提交 Git
|
||
- 公网须改默认密码并配置 HTTPS
|
||
- 实盘风险由使用者自行承担
|