Discard config settings in MD

This commit is contained in:
icy
2025-10-31 13:28:06 +08:00
8 changed files with 98 additions and 66 deletions

View File

@@ -46,7 +46,7 @@ NOFX现已支持**三大交易所**Binance、Hyperliquid和Aster DEX
**快速开始:**
1. 获取你的MetaMask私钥去掉`0x`前缀)
2. 在config.json中设置`"exchange": "hyperliquid"`
2. ~~在config.json中设置`"exchange": "hyperliquid"`~~ *通过Web界面配置*
3. 添加`"hyperliquid_private_key": "your_key"`
4. 开始交易!
@@ -73,7 +73,7 @@ NOFX现已支持**三大交易所**Binance、Hyperliquid和Aster DEX
1. 访问[Aster API钱包](https://www.asterdex.com/en/api-wallet)
2. 连接你的主钱包并创建API钱包
3. 复制API Signer地址和私钥
4. 在config.json中设置`"exchange": "aster"`
4. ~~在config.json中设置`"exchange": "aster"`~~ *通过Web界面配置*
5. 添加`"aster_user"``"aster_signer"``"aster_private_key"`
---
@@ -150,7 +150,7 @@ NOFX现已支持**三大交易所**Binance、Hyperliquid和Aster DEX
```
nofx/
├── main.go # 程序入口多trader管理器
├── config.json # 配置文件API密钥、多trader配置
├── ~~config.json~~ # ~~配置文件API密钥、多trader配置~~ (已弃用使用Web界面)
├── api/ # HTTP API服务
│ └── server.go # Gin框架RESTful API
@@ -226,7 +226,7 @@ nofx/
5. **创建API密钥**
- 进入账户 API管理
- 创建新的API密钥**务必勾选"合约"权限**
- 保存API Key和Secret Keyconfig.json中需要
- 保存API Key和Secret Key~~config.json中需要~~ *Web界面中需要*
- **重要**添加IP白名单以确保安全
### 手续费优惠说明:
@@ -245,14 +245,15 @@ nofx/
Docker会自动处理所有依赖GoNode.jsTA-Lib和环境配置完美适合新手
#### 步骤1准备配置文件
#### ~~步骤1准备配置文件~~ (已弃用)
```bash
# 复制配置文件模板
cp config.json.example config.json
# ~~复制配置文件模板~~
# ~~cp config.example.jsonc config.json~~
# 编辑并填入你的API密钥
nano config.json # 或使用其他编辑器
# ~~编辑并填入你的API密钥~~
# ~~nano config.json # 或使用其他编辑器~~
```
**注意**: 现在通过Web界面进行配置不再使用JSON文件
#### 步骤2一键启动
```bash
@@ -382,13 +383,15 @@ cd ..
#### 🌟 新手模式配置(推荐)
**步骤1**复制并重命名示例配置文件
~~**步骤1**复制并重命名示例配置文件~~
```bash
cp config.json.example config.json
```
~~```bash
cp config.example.jsonc config.json
```~~
**步骤2**编辑`config.json`填入您的API密钥
~~**步骤2**:编辑`config.json`填入您的API密钥~~
*现在通过Web界面配置无需编辑JSON文件*
```json
{
@@ -453,7 +456,7 @@ cp config.json.example config.json
3. **去掉`0x`前缀**
4. [Hyperliquid](https://hyperliquid.xyz)上为钱包充值
**步骤2**为Hyperliquid配置`config.json`
~~**步骤2**为Hyperliquid配置`config.json`~~ *通过Web界面配置*
```json
{
@@ -507,7 +510,7 @@ cp config.json.example config.json
- API钱包地址Signer
- API钱包私钥(⚠ 仅显示一次
**步骤2**为Aster配置`config.json`
~~**步骤2**为Aster配置`config.json`~~ *通过Web界面配置*
```json
{
@@ -755,9 +758,9 @@ go build -o nofx
| 错误信息 | 解决方案 |
|---------|---------|
| `invalid API key` | 检查config.json中的币安API密钥 |
| `invalid API key` | ~~检查config.json中的币安API密钥~~ *检查Web界面中的API密钥* |
| `TA-Lib not found` | 运行`brew install ta-lib`macOS |
| `port 8080 already in use` | 修改config.json中的`api_server_port` |
| `port 8080 already in use` | ~~修改config.json中的`api_server_port`~~ *修改.env文件中的`API_PORT`* |
| `DeepSeek API error` | 验证DeepSeek API密钥和余额 |
**✅ 后端运行正常的标志:**
@@ -1194,7 +1197,7 @@ sudo apt-get install libta-lib0-dev
**解决**:
- 币种池API是可选的
- 如果API失败系统会使用默认主流币种BTC、ETH等
- 检查config.json中的API URL和auth参数
- ~~检查config.json中的API URL和auth参数~~ *检查Web界面中的配置*
---