mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2025-12-06 13:54:41 +08:00
docs: simplify exchange sections, consolidate into Supported Exchanges table
- Remove individual exchange registration sections from all READMEs - Remove redundant Binance, Hyperliquid, Aster DEX detailed setup sections - Consolidate all exchange info into Supported Exchanges table with register links and setup guides - Rename section to "Supported Exchanges (DEX/CEX Tutorials)" in respective languages
This commit is contained in:
221
README.md
221
README.md
@@ -20,10 +20,7 @@
|
||||
- [✨ Current Implementation](#-current-implementation---crypto-markets)
|
||||
- [🔮 Roadmap](#-roadmap---universal-market-expansion)
|
||||
- [🏗️ Technical Architecture](#️-technical-architecture)
|
||||
- [🏦 Supported Exchanges](#-supported-exchanges)
|
||||
- [💰 Register Binance Account](#-register-binance-account-save-on-fees)
|
||||
- [🔷 Register Hyperliquid Account](#-using-hyperliquid-exchange)
|
||||
- [🔶 Register Aster DEX Account](#-using-aster-dex-exchange)
|
||||
- [🏦 Supported Exchanges (DEX/CEX Tutorials)](#-supported-exchanges-dexcex-tutorials)
|
||||
- [🚀 Quick Start](#-quick-start)
|
||||
- [📖 AI Decision Flow](#-ai-decision-flow)
|
||||
- [🧠 AI Self-Learning](#-ai-self-learning-example)
|
||||
@@ -182,7 +179,7 @@ NOFX is built with a modern, modular architecture:
|
||||
|
||||
---
|
||||
|
||||
## 🏦 Supported Exchanges
|
||||
## 🏦 Supported Exchanges (DEX/CEX Tutorials)
|
||||
|
||||
### CEX (Centralized Exchanges)
|
||||
|
||||
@@ -202,34 +199,6 @@ NOFX is built with a modern, modular architecture:
|
||||
|
||||
---
|
||||
|
||||
## 💰 Register Binance Account (Save on Fees!)
|
||||
|
||||
Before using this system, you need a Binance Futures account. **Use our referral link to save on trading fees:**
|
||||
|
||||
**🎁 [Register Binance - Get Fee Discount](https://www.binance.com/join?ref=NOFXENG)**
|
||||
|
||||
### Registration Steps:
|
||||
|
||||
1. **Click the link above** to visit Binance registration page
|
||||
2. **Complete registration** with email/phone number
|
||||
3. **Complete KYC verification** (required for futures trading)
|
||||
4. **Enable Futures account**:
|
||||
- Go to Binance homepage → Derivatives → USD-M Futures
|
||||
- Click "Open Now" to activate futures trading
|
||||
5. **Create API Key**:
|
||||
- Go to Account → API Management
|
||||
- Create new API key, **enable "Futures" permission**
|
||||
- Save API Key and Secret Key (~~needed for config.json~~) *needed for web interface*
|
||||
- **Important**: Whitelist your IP address for security
|
||||
|
||||
### Fee Discount Benefits:
|
||||
|
||||
- ✅ **Spot trading**: Up to 30% fee discount
|
||||
- ✅ **Futures trading**: Up to 30% fee discount
|
||||
- ✅ **Lifetime validity**: Permanent discount on all trades
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
### 🐳 Option A: Docker One-Click Deployment (EASIEST - Recommended!)
|
||||
@@ -449,192 +418,6 @@ Open your browser and visit: **🌐 http://localhost:3000**
|
||||
|
||||
---
|
||||
|
||||
#### 🔷 Using Hyperliquid Exchange
|
||||
|
||||
**NOFX supports Hyperliquid** - a high-performance decentralized perpetual futures exchange!
|
||||
|
||||
**Why Choose Hyperliquid?**
|
||||
- 🚀 **High Performance**: Lightning-fast execution on L1 blockchain
|
||||
- 💰 **Low Fees**: Competitive maker/taker fees
|
||||
- 🔐 **Non-Custodial**: Your keys, your coins
|
||||
- 🌐 **No KYC**: Anonymous trading
|
||||
- 💎 **Deep Liquidity**: Institutional-grade order book
|
||||
|
||||
---
|
||||
|
||||
### 📝 Registration & Setup Guide
|
||||
|
||||
**Step 1: Register Hyperliquid Account**
|
||||
|
||||
1. **Visit Hyperliquid with Referral Link** (get benefits!):
|
||||
|
||||
**🎁 [Register Hyperliquid - Join AITRADING](https://app.hyperliquid.xyz/join/AITRADING)**
|
||||
|
||||
2. **Connect Your Wallet**:
|
||||
- Click "Connect Wallet" on the top right
|
||||
- Choose MetaMask, WalletConnect, or other Web3 wallets
|
||||
- Approve the connection
|
||||
|
||||
3. **Enable Trading**:
|
||||
- First connection will prompt you to sign a message
|
||||
- This authorizes your wallet for trading (no gas fees)
|
||||
- You'll see your wallet address displayed
|
||||
|
||||
**Step 2: Fund Your Wallet**
|
||||
|
||||
1. **Bridge Assets to Arbitrum**:
|
||||
- Hyperliquid runs on Arbitrum L2
|
||||
- Bridge USDC from Ethereum mainnet or other chains
|
||||
- Or directly withdraw USDC from exchanges to Arbitrum
|
||||
|
||||
2. **Deposit to Hyperliquid**:
|
||||
- Click "Deposit" on Hyperliquid interface
|
||||
- Select USDC amount to deposit
|
||||
- Confirm the transaction (small gas fee on Arbitrum)
|
||||
- Funds appear in your Hyperliquid account within seconds
|
||||
|
||||
**Step 3: Set Up Agent Wallet (Recommended)**
|
||||
|
||||
Hyperliquid supports **Agent Wallets** - secure sub-wallets specifically for trading automation!
|
||||
|
||||
⚠️ **Why Use Agent Wallet:**
|
||||
- ✅ **More Secure**: Never expose your main wallet private key
|
||||
- ✅ **Limited Access**: Agent only has trading permissions
|
||||
- ✅ **Revocable**: Can be disabled anytime from Hyperliquid interface
|
||||
- ✅ **Separate Funds**: Keep main holdings safe
|
||||
|
||||
**How to Create Agent Wallet:**
|
||||
|
||||
1. **Log in to Hyperliquid** using your main wallet
|
||||
- Visit [https://app.hyperliquid.xyz](https://app.hyperliquid.xyz)
|
||||
- Connect with the wallet you registered (from referral link)
|
||||
|
||||
2. **Navigate to Agent Settings**:
|
||||
- Click on your wallet address (top right)
|
||||
- Go to "Settings" → "API & Agents"
|
||||
- Or visit: [https://app.hyperliquid.xyz/agents](https://app.hyperliquid.xyz/agents)
|
||||
|
||||
3. **Create New Agent**:
|
||||
- Click "Create Agent" or "Add Agent"
|
||||
- System will generate a new agent wallet automatically
|
||||
- **Save the agent wallet address** (starts with `0x`)
|
||||
- **Save the agent private key** (shown only once!)
|
||||
|
||||
4. **Agent Wallet Details**:
|
||||
- Main Wallet: Your connected wallet (holds funds)
|
||||
- Agent Wallet: The sub-wallet for trading (NOFX will use this)
|
||||
- Private Key: Only needed for NOFX configuration
|
||||
|
||||
5. **Fund Your Agent** (Optional):
|
||||
- Transfer USDC from main wallet to agent wallet
|
||||
- Or keep funds in main wallet (agent can trade from it)
|
||||
|
||||
6. **Save Credentials for NOFX**:
|
||||
- Main Wallet Address: `0xYourMainWalletAddress` (with `0x`)
|
||||
- Agent Private Key: `YourAgentPrivateKeyWithout0x` (remove `0x` prefix)
|
||||
|
||||
---
|
||||
|
||||
~~Configure `config.json` for Hyperliquid~~ *Configure through web interface*
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "hyperliquid_trader",
|
||||
"name": "My Hyperliquid Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "hyperliquid",
|
||||
"hyperliquid_private_key": "your_private_key_without_0x",
|
||||
"hyperliquid_wallet_addr": "your_ethereum_address",
|
||||
"hyperliquid_testnet": false,
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080
|
||||
}
|
||||
```
|
||||
|
||||
**Key Differences from Binance Config:**
|
||||
- Replace `binance_api_key` + `binance_secret_key` with `hyperliquid_private_key`
|
||||
- Add `"exchange": "hyperliquid"` field
|
||||
- Set `hyperliquid_testnet: false` for mainnet (or `true` for testnet)
|
||||
|
||||
**⚠️ Security Warning**: Never share your private key! Use a dedicated wallet for trading, not your main wallet.
|
||||
|
||||
---
|
||||
|
||||
#### 🔶 Using Aster DEX Exchange
|
||||
|
||||
**NOFX supports Aster DEX** - a Binance-compatible decentralized perpetual futures exchange!
|
||||
|
||||
**Why Choose Aster?**
|
||||
- 🎯 Binance-compatible API (easy migration)
|
||||
- 🔐 API Wallet security system
|
||||
- 💰 Lower trading fees
|
||||
- 🌐 Multi-chain support (ETH, BSC, Polygon)
|
||||
- 🌍 No KYC required
|
||||
|
||||
**Step 1**: Register and Create Aster API Wallet
|
||||
|
||||
1. Register via [Aster Referral Link](https://www.asterdex.com/en/referral/fdfc0e) (get fee discounts!)
|
||||
2. Visit [Aster API Wallet](https://www.asterdex.com/en/api-wallet)
|
||||
3. Connect your main wallet (MetaMask, WalletConnect, etc.)
|
||||
4. Click "Create API Wallet"
|
||||
5. **Save these 3 items immediately:**
|
||||
- Main Wallet address (User)
|
||||
- API Wallet address (Signer)
|
||||
- API Wallet Private Key (⚠️ shown only once!)
|
||||
|
||||
**Step 2**: ~~Configure `config.json` for Aster~~ *Configure through web interface*
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "aster_deepseek",
|
||||
"name": "Aster DeepSeek Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "aster",
|
||||
|
||||
"aster_user": "0xYOUR_MAIN_WALLET_ADDRESS_HERE",
|
||||
"aster_signer": "0xYOUR_API_WALLET_SIGNER_ADDRESS_HERE",
|
||||
"aster_private_key": "your_api_wallet_private_key_without_0x_prefix",
|
||||
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080,
|
||||
"leverage": {
|
||||
"btc_eth_leverage": 5,
|
||||
"altcoin_leverage": 5
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Key Configuration Fields:**
|
||||
- `"exchange": "aster"` - Set exchange to Aster
|
||||
- `aster_user` - Your main wallet address
|
||||
- `aster_signer` - API wallet address (from Step 1)
|
||||
- `aster_private_key` - API wallet private key (without `0x` prefix)
|
||||
|
||||
**📖 For detailed setup instructions, see**: [Aster Integration Guide](ASTER_INTEGRATION.md)
|
||||
|
||||
**⚠️ Security Notes**:
|
||||
- API wallet is separate from your main wallet (extra security layer)
|
||||
- Never share your API private key
|
||||
- You can revoke API wallet access anytime at [asterdex.com](https://www.asterdex.com/en/api-wallet)
|
||||
|
||||
---
|
||||
|
||||
#### ⚔️ Expert Mode: Multi-Trader Competition
|
||||
|
||||
For running multiple AI traders competing against each other:
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
- [✨ 現在の実装 - 暗号通貨市場](#-現在の実装---暗号通貨市場)
|
||||
- [🔮 ロードマップ](#-ロードマップ---ユニバーサルマーケット拡大)
|
||||
- [🏗️ 技術アーキテクチャ](#️-技術アーキテクチャ)
|
||||
- [🏦 対応取引所](#-対応取引所)
|
||||
- [💰 Binanceアカウント登録](#-binanceアカウント登録手数料節約)
|
||||
- [🔷 Hyperliquidアカウント登録](#-hyperliquid取引所の使用)
|
||||
- [🔶 Aster DEXアカウント登録](#-aster-dex取引所の使用)
|
||||
- [🏦 対応取引所(DEX/CEXチュートリアル)](#-対応取引所dexcexチュートリアル)
|
||||
- [🚀 クイックスタート](#-クイックスタート)
|
||||
- [📖 AI判断フロー](#-ai判断フロー)
|
||||
- [🧠 AI自己学習の例](#-ai自己学習の例)
|
||||
@@ -212,7 +209,7 @@ nofx/
|
||||
|
||||
---
|
||||
|
||||
## 🏦 対応取引所
|
||||
## 🏦 対応取引所(DEX/CEXチュートリアル)
|
||||
|
||||
### CEX(中央集権型取引所)
|
||||
|
||||
@@ -232,34 +229,6 @@ nofx/
|
||||
|
||||
---
|
||||
|
||||
## 💰 Binanceアカウント登録(手数料節約!)
|
||||
|
||||
このシステムを使用する前に、Binance先物アカウントが必要です。**紹介リンクを使用して取引手数料を節約しましょう:**
|
||||
|
||||
**🎁 [Binance登録 - 手数料割引を取得](https://www.binance.com/join?ref=NOFXJAPAN)**
|
||||
|
||||
### 登録手順:
|
||||
|
||||
1. **上記のリンクをクリック**してBinance登録ページにアクセス
|
||||
2. メール/電話番号で**登録を完了**
|
||||
3. **KYC認証を完了**(先物取引に必要)
|
||||
4. **先物アカウントを有効化**:
|
||||
- Binanceホームページ → デリバティブ → USDT無期限先物
|
||||
- 「今すぐ開設」をクリックして先物取引を有効化
|
||||
5. **APIキーを作成**:
|
||||
- アカウント → API管理
|
||||
- 新しいAPIキーを作成、**「先物」権限を有効化**
|
||||
- APIキーとシークレットキーを保存(config.jsonに必要)
|
||||
- **重要**: セキュリティのためIPアドレスをホワイトリストに追加
|
||||
|
||||
### 手数料割引の利点:
|
||||
|
||||
- ✅ **現物取引**: 最大30%の手数料割引
|
||||
- ✅ **先物取引**: 最大30%の手数料割引
|
||||
- ✅ **生涯有効**: すべての取引で永久割引
|
||||
|
||||
---
|
||||
|
||||
## 🚀 クイックスタート
|
||||
|
||||
### 🐳 オプションA:Dockerワンクリックデプロイ(最も簡単 - 初心者推奨!)
|
||||
@@ -474,191 +443,6 @@ cp config.json.example config.json
|
||||
|
||||
---
|
||||
|
||||
#### 🔷 Hyperliquid取引所の使用
|
||||
|
||||
**NOFXはHyperliquidをサポート** - 高性能な分散型無期限先物取引所!
|
||||
|
||||
**なぜHyperliquidを選ぶ?**
|
||||
- 🚀 **高性能**: L1ブロックチェーンでの超高速実行
|
||||
- 💰 **低手数料**: 競争力のあるメーカー/テイカー手数料
|
||||
- 🔐 **非カストディアル**: あなたの鍵、あなたのコイン
|
||||
- 🌐 **KYC不要**: 匿名取引
|
||||
- 💎 **豊富な流動性**: 機関投資家レベルのオーダーブック
|
||||
|
||||
---
|
||||
|
||||
### 📝 登録とセットアップガイド
|
||||
|
||||
**ステップ1: Hyperliquidアカウントを登録**
|
||||
|
||||
1. **紹介リンクでHyperliquidにアクセス**(特典を獲得!):
|
||||
|
||||
**🎁 [Hyperliquid登録 - AITRADINGに参加](https://app.hyperliquid.xyz/join/AITRADING)**
|
||||
|
||||
2. **ウォレットを接続**:
|
||||
- 右上の「ウォレット接続」をクリック
|
||||
- MetaMask、WalletConnect、または他のWeb3ウォレットを選択
|
||||
- 接続を承認
|
||||
|
||||
3. **取引を有効化**:
|
||||
- 初回接続時にメッセージへの署名を求められます
|
||||
- これによりウォレットでの取引が承認されます(ガス代不要)
|
||||
- ウォレットアドレスが表示されます
|
||||
|
||||
**ステップ2: ウォレットに資金を入金**
|
||||
|
||||
1. **Arbitrumにアセットをブリッジ**:
|
||||
- HyperliquidはArbitrum L2上で動作します
|
||||
- Ethereumメインネットまたは他のチェーンからUSDCをブリッジ
|
||||
- または取引所からArbitrumに直接USDCを出金
|
||||
|
||||
2. **Hyperliquidに入金**:
|
||||
- Hyperliquidインターフェースで「入金」をクリック
|
||||
- 入金するUSDC金額を選択
|
||||
- トランザクションを確認(Arbitrumでの少額のガス代)
|
||||
- 数秒でHyperliquidアカウントに資金が表示されます
|
||||
|
||||
**ステップ3: エージェントウォレットをセットアップ(推奨)**
|
||||
|
||||
Hyperliquidは**エージェントウォレット**をサポート - 取引自動化専用の安全なサブウォレット!
|
||||
|
||||
⚠️ **エージェントウォレットを使用する理由:**
|
||||
- ✅ **より安全**: メインウォレットの秘密鍵を公開する必要なし
|
||||
- ✅ **限定的なアクセス**: エージェントは取引権限のみ
|
||||
- ✅ **取り消し可能**: Hyperliquidインターフェースからいつでも無効化可能
|
||||
- ✅ **資金の分離**: メインの保有資産を安全に保つ
|
||||
|
||||
**エージェントウォレットの作成方法:**
|
||||
|
||||
1. **メインウォレットでHyperliquidにログイン**
|
||||
- [https://app.hyperliquid.xyz](https://app.hyperliquid.xyz)にアクセス
|
||||
- 登録したウォレットで接続(紹介リンクから)
|
||||
|
||||
2. **エージェント設定に移動**:
|
||||
- ウォレットアドレスをクリック(右上)
|
||||
- 「設定」→「API & エージェント」に移動
|
||||
- または:[https://app.hyperliquid.xyz/agents](https://app.hyperliquid.xyz/agents)にアクセス
|
||||
|
||||
3. **新しいエージェントを作成**:
|
||||
- 「エージェントを作成」または「エージェントを追加」をクリック
|
||||
- システムが自動的に新しいエージェントウォレットを生成
|
||||
- **エージェントウォレットアドレスを保存**(`0x`で始まる)
|
||||
- **エージェント秘密鍵を保存**(一度だけ表示されます!)
|
||||
|
||||
4. **エージェントウォレットの詳細**:
|
||||
- メインウォレット: 接続したウォレット(資金を保有)
|
||||
- エージェントウォレット: 取引用のサブウォレット(NOFXがこれを使用)
|
||||
- 秘密鍵: NOFX設定にのみ必要
|
||||
|
||||
5. **エージェントに資金を入金**(オプション):
|
||||
- メインウォレットからエージェントウォレットにUSDCを送金
|
||||
- またはメインウォレットに資金を保持(エージェントはそこから取引可能)
|
||||
|
||||
6. **NOFX用の認証情報を保存**:
|
||||
- メインウォレットアドレス: `0xYourMainWalletAddress`(`0x`付き)
|
||||
- エージェント秘密鍵: `YourAgentPrivateKeyWithout0x`(`0x`プレフィックスを削除)
|
||||
|
||||
---
|
||||
|
||||
~~Hyperliquid用に`config.json`を設定~~ *Webインターフェースで設定*
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "hyperliquid_trader",
|
||||
"name": "My Hyperliquid Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "hyperliquid",
|
||||
"hyperliquid_private_key": "your_private_key_without_0x",
|
||||
"hyperliquid_wallet_addr": "your_ethereum_address",
|
||||
"hyperliquid_testnet": false,
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080
|
||||
}
|
||||
```
|
||||
|
||||
**Binance設定との主な違い:**
|
||||
- `binance_api_key` + `binance_secret_key`を`hyperliquid_private_key`に置き換え
|
||||
- `"exchange": "hyperliquid"`フィールドを追加
|
||||
- メインネットには`hyperliquid_testnet: false`、テストネットには`true`を設定
|
||||
|
||||
**⚠️ セキュリティ警告**: 秘密鍵は絶対に共有しないでください!メインウォレットではなく、取引専用のウォレットを使用してください。
|
||||
|
||||
---
|
||||
|
||||
#### 🔶 Aster DEX取引所の使用
|
||||
|
||||
**NOFXはAster DEXもサポート** - Binance互換の分散型無期限先物取引所!
|
||||
|
||||
**なぜAsterを選ぶ?**
|
||||
- 🎯 Binance互換API(簡単な移行)
|
||||
- 🔐 APIウォレットセキュリティシステム
|
||||
- 💰 低い取引手数料
|
||||
- 🌐 マルチチェーンサポート(ETH、BSC、Polygon)
|
||||
- 🌍 KYC不要
|
||||
|
||||
**ステップ1**: Aster APIウォレットを作成
|
||||
|
||||
1. [Aster APIウォレット](https://www.asterdex.com/en/api-wallet)にアクセス
|
||||
2. メインウォレットを接続(MetaMask、WalletConnectなど)
|
||||
3. 「APIウォレットを作成」をクリック
|
||||
4. **これらの3つの項目をすぐに保存:**
|
||||
- メインウォレットアドレス(User)
|
||||
- APIウォレットアドレス(Signer)
|
||||
- APIウォレット秘密鍵(⚠️ 一度だけ表示!)
|
||||
|
||||
**ステップ2**: Aster用に`config.json`を設定
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "aster_deepseek",
|
||||
"name": "Aster DeepSeek Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "aster",
|
||||
|
||||
"aster_user": "0x63DD5aCC6b1aa0f563956C0e534DD30B6dcF7C4e",
|
||||
"aster_signer": "0x21cF8Ae13Bb72632562c6Fff438652Ba1a151bb0",
|
||||
"aster_private_key": "4fd0a42218f3eae43a6ce26d22544e986139a01e5b34a62db53757ffca81bae1",
|
||||
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080,
|
||||
"leverage": {
|
||||
"btc_eth_leverage": 5,
|
||||
"altcoin_leverage": 5
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**主要設定フィールド:**
|
||||
- `"exchange": "aster"` - 取引所をAsterに設定
|
||||
- `aster_user` - メインウォレットアドレス
|
||||
- `aster_signer` - APIウォレットアドレス(ステップ1から)
|
||||
- `aster_private_key` - APIウォレット秘密鍵(`0x`プレフィックスなし)
|
||||
|
||||
**📖 詳細なセットアップ手順については**: [Aster統合ガイド](ASTER_INTEGRATION.md)を参照
|
||||
|
||||
**⚠️ セキュリティ注意事項**:
|
||||
- APIウォレットはメインウォレットとは別(追加のセキュリティレイヤー)
|
||||
- API秘密鍵は絶対に共有しない
|
||||
- [asterdex.com](https://www.asterdex.com/en/api-wallet)でいつでもAPIウォレットアクセスを取り消し可能
|
||||
|
||||
---
|
||||
|
||||
#### ⚔️ エキスパートモード:マルチトレーダー競争
|
||||
|
||||
複数のAIトレーダーが互いに競争する場合:
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
- [✨ 현재 구현](#-현재-구현---암호화폐-시장)
|
||||
- [🔮 로드맵](#-로드맵---범용-시장-확장)
|
||||
- [🏗️ 기술 아키텍처](#️-기술-아키텍처)
|
||||
- [🏦 지원 거래소](#-지원-거래소)
|
||||
- [💰 바이낸스 계정 등록](#-바이낸스-계정-등록-수수료-절약)
|
||||
- [🔷 Hyperliquid 계정 등록](#hyperliquid-거래소)
|
||||
- [🔶 Aster DEX 계정 등록](#aster-dex-거래소-신규-v202)
|
||||
- [🏦 지원 거래소 (DEX/CEX 튜토리얼)](#-지원-거래소-dexcex-튜토리얼)
|
||||
- [🚀 빠른 시작](#-빠른-시작)
|
||||
- [📖 AI 의사결정 흐름](#-ai-의사결정-흐름)
|
||||
- [🧠 AI 자가학습 예시](#-ai-자가학습-예시)
|
||||
@@ -185,7 +182,7 @@ NOFX는 현대적이고 모듈화된 아키텍처로 구축되었습니다:
|
||||
|
||||
---
|
||||
|
||||
## 🏦 지원 거래소
|
||||
## 🏦 지원 거래소 (DEX/CEX 튜토리얼)
|
||||
|
||||
### CEX (중앙화 거래소)
|
||||
|
||||
@@ -205,34 +202,6 @@ NOFX는 현대적이고 모듈화된 아키텍처로 구축되었습니다:
|
||||
|
||||
---
|
||||
|
||||
## 💰 바이낸스 계정 등록 (수수료 절약!)
|
||||
|
||||
이 시스템을 사용하기 전에 바이낸스 선물 계정이 필요합니다. **추천 링크를 사용하여 거래 수수료를 절약하세요:**
|
||||
|
||||
**🎁 [바이낸스 등록 - 수수료 할인 받기](https://www.binance.com/join?ref=NOFXKOREA)**
|
||||
|
||||
### 등록 단계:
|
||||
|
||||
1. **위 링크를 클릭**하여 바이낸스 등록 페이지 방문
|
||||
2. 이메일/전화번호로 **등록 완료**
|
||||
3. **KYC 인증 완료** (선물 거래 필수)
|
||||
4. **선물 계정 활성화**:
|
||||
- 바이낸스 홈페이지 → 파생상품 → USD-M 선물로 이동
|
||||
- "지금 개설"을 클릭하여 선물 거래 활성화
|
||||
5. **API 키 생성**:
|
||||
- 계정 → API 관리로 이동
|
||||
- 새 API 키 생성, **"선물" 권한 활성화**
|
||||
- API Key와 Secret Key 저장 (웹 인터페이스에 필요)
|
||||
- **중요**: 보안을 위해 IP 주소를 화이트리스트에 추가
|
||||
|
||||
### 수수료 할인 혜택:
|
||||
|
||||
- ✅ **현물 거래**: 최대 30% 수수료 할인
|
||||
- ✅ **선물 거래**: 최대 30% 수수료 할인
|
||||
- ✅ **평생 유효**: 모든 거래에 대한 영구 할인
|
||||
|
||||
---
|
||||
|
||||
## 🚀 빠른 시작
|
||||
|
||||
### 🐳 옵션 A: Docker 원클릭 배포 (가장 쉬움 - 초보자 권장!)
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
- [✨ 当前实现](#-当前实现---加密货币市场)
|
||||
- [🔮 路线图](#-路线图---通用市场扩展)
|
||||
- [🏗️ 技术架构](#️-技术架构)
|
||||
- [🏦 支持的交易所](#-支持的交易所)
|
||||
- [💰 注册币安账户](#-注册币安账户省手续费)
|
||||
- [🔷 注册Hyperliquid账户](#-使用hyperliquid交易所)
|
||||
- [🔶 注册Aster DEX账户](#-使用aster-dex交易所)
|
||||
- [🏦 支持的交易所(DEX/CEX教程)](#-支持的交易所dexcex教程)
|
||||
- [🚀 快速开始](#-快速开始)
|
||||
- [📖 AI决策流程](#-ai决策流程)
|
||||
- [🧠 AI自我学习示例](#-ai自我学习示例)
|
||||
@@ -184,7 +181,7 @@ NOFX 采用现代化的模块化架构:
|
||||
|
||||
---
|
||||
|
||||
## 🏦 支持的交易所
|
||||
## 🏦 支持的交易所(DEX/CEX教程)
|
||||
|
||||
### CEX(中心化交易所)
|
||||
|
||||
@@ -204,34 +201,6 @@ NOFX 采用现代化的模块化架构:
|
||||
|
||||
---
|
||||
|
||||
## 💰 注册币安账户(省手续费!)
|
||||
|
||||
使用本系统前,您需要一个币安合约账户。**使用我们的推荐链接注册可享受手续费优惠:**
|
||||
|
||||
**🎁 [注册币安 - 享手续费折扣](https://www.binance.com/join?ref=NOFXCHI)**
|
||||
|
||||
### 注册步骤:
|
||||
|
||||
1. **点击上方链接** 访问币安注册页面
|
||||
2. **完成注册** 使用邮箱/手机号注册
|
||||
3. **完成KYC身份认证**(合约交易必须)
|
||||
4. **开通合约账户**:
|
||||
- 进入币安首页 → 衍生品 → U本位合约
|
||||
- 点击"立即开通"激活合约交易
|
||||
5. **创建API密钥**:
|
||||
- 进入账户 → API管理
|
||||
- 创建新的API密钥,**务必勾选"合约"权限**
|
||||
- 保存API Key和Secret Key(~~config.json中需要~~ *Web界面中需要*)
|
||||
- **重要**:添加IP白名单以确保安全
|
||||
|
||||
### 手续费优惠说明:
|
||||
|
||||
- ✅ **现货交易**:最高享30%手续费返佣
|
||||
- ✅ **合约交易**:最高享30%手续费返佣
|
||||
- ✅ **终身有效**:永久享受交易手续费折扣
|
||||
|
||||
---
|
||||
|
||||
## 🚀 快速开始
|
||||
|
||||
### 🐳 方式A:Docker 一键部署(最简单 - 新手推荐!)
|
||||
@@ -442,184 +411,6 @@ cp config.json.example config.json
|
||||
|
||||
---
|
||||
|
||||
#### 🔷 使用Hyperliquid交易所
|
||||
|
||||
### 📝 注册与设置指南
|
||||
|
||||
**步骤1:注册Hyperliquid账户**
|
||||
|
||||
1. **通过邀请链接访问Hyperliquid**(享受优惠!):
|
||||
|
||||
**🎁 [注册Hyperliquid - 加入AITRADING](https://app.hyperliquid.xyz/join/AITRADING)**
|
||||
|
||||
2. **连接你的钱包**:
|
||||
- 点击右上角"Connect Wallet"
|
||||
- 选择MetaMask、WalletConnect或其他Web3钱包
|
||||
- 批准连接
|
||||
|
||||
3. **启用交易**:
|
||||
- 首次连接会提示你签名消息
|
||||
- 这会授权你的钱包进行交易(无gas费)
|
||||
- 你将看到钱包地址显示出来
|
||||
|
||||
**步骤2:为钱包充值**
|
||||
|
||||
1. **将资产桥接到Arbitrum**:
|
||||
- Hyperliquid运行在Arbitrum L2上
|
||||
- 从以太坊主网或其他链桥接USDC
|
||||
- 或者直接从交易所提现USDC到Arbitrum
|
||||
|
||||
2. **充值到Hyperliquid**:
|
||||
- 在Hyperliquid界面点击"Deposit"
|
||||
- 选择要充值的USDC数量
|
||||
- 确认交易(Arbitrum上的小额gas费)
|
||||
- 资金会在几秒内到达你的Hyperliquid账户
|
||||
|
||||
**步骤3:设置代理钱包(推荐)**
|
||||
|
||||
Hyperliquid支持**代理钱包**功能 - 专门用于交易自动化的安全子钱包!
|
||||
|
||||
⚠️ **为什么使用代理钱包:**
|
||||
- ✅ **更安全**:永远不暴露主钱包私钥
|
||||
- ✅ **权限受限**:代理钱包只有交易权限
|
||||
- ✅ **可随时撤销**:可从Hyperliquid界面随时禁用
|
||||
- ✅ **资金隔离**:保持主要资产安全
|
||||
|
||||
**如何创建代理钱包:**
|
||||
|
||||
1. **登录Hyperliquid**,使用你的主钱包
|
||||
- 访问 [https://app.hyperliquid.xyz](https://app.hyperliquid.xyz)
|
||||
- 连接你注册时使用的钱包(来自邀请链接)
|
||||
|
||||
2. **进入代理设置**:
|
||||
- 点击钱包地址(右上角)
|
||||
- 进入"Settings" → "API & Agents"
|
||||
- 或直接访问:[https://app.hyperliquid.xyz/agents](https://app.hyperliquid.xyz/agents)
|
||||
|
||||
3. **创建新代理**:
|
||||
- 点击"Create Agent"或"Add Agent"
|
||||
- 系统会自动生成新的代理钱包
|
||||
- **保存代理钱包地址**(以`0x`开头)
|
||||
- **保存代理私钥**(仅显示一次!)
|
||||
|
||||
4. **代理钱包详情**:
|
||||
- 主钱包:你连接的钱包(持有资金)
|
||||
- 代理钱包:用于交易的子钱包(NOFX将使用此钱包)
|
||||
- 私钥:仅用于NOFX配置
|
||||
|
||||
5. **为代理充值**(可选):
|
||||
- 从主钱包转账USDC到代理钱包
|
||||
- 或保持资金在主钱包(代理可以从主钱包交易)
|
||||
|
||||
6. **保存NOFX配置凭据**:
|
||||
- 主钱包地址:`0xYourMainWalletAddress`(保留`0x`前缀)
|
||||
- 代理私钥:`YourAgentPrivateKeyWithout0x`(去掉`0x`前缀)
|
||||
|
||||
---
|
||||
|
||||
~~**配置`config.json`**~~ *通过Web界面配置*
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "hyperliquid_trader",
|
||||
"name": "My Hyperliquid Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "hyperliquid",
|
||||
"hyperliquid_private_key": "your_agent_private_key_without_0x",
|
||||
"hyperliquid_wallet_addr": "0xYourMainWalletAddress",
|
||||
"hyperliquid_testnet": false,
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080
|
||||
}
|
||||
```
|
||||
|
||||
**关键配置字段:**
|
||||
- `"exchange": "hyperliquid"` - 设置交易所为Hyperliquid
|
||||
- `hyperliquid_private_key` - 代理钱包私钥(去掉`0x`前缀)
|
||||
- `hyperliquid_wallet_addr` - 主钱包地址(保留`0x`前缀)
|
||||
- `hyperliquid_testnet: false` - 使用主网(设为`true`使用测试网)
|
||||
|
||||
**⚠️ 安全提示**:
|
||||
- 优先使用代理钱包而非主钱包私钥
|
||||
- 切勿分享你的私钥
|
||||
- 可以随时从Hyperliquid界面撤销代理权限
|
||||
- 定期检查代理钱包活动
|
||||
|
||||
---
|
||||
|
||||
#### 🔶 使用Aster DEX交易所
|
||||
|
||||
**NOFX支持Aster DEX** - 兼容Binance的去中心化永续期货交易所!
|
||||
|
||||
**为什么选择Aster?**
|
||||
- 🎯 兼容Binance API(轻松迁移)
|
||||
- 🔐 API钱包安全系统
|
||||
- 💰 更低的交易手续费
|
||||
- 🌐 多链支持(ETH、BSC、Polygon)
|
||||
- 🌍 无需KYC
|
||||
|
||||
**步骤1**:注册并创建Aster API钱包
|
||||
|
||||
1. 通过[推荐链接注册Aster](https://www.asterdex.com/en/referral/fdfc0e)(享手续费优惠)
|
||||
2. 访问[Aster API钱包](https://www.asterdex.com/en/api-wallet)
|
||||
3. 连接你的主钱包(MetaMask、WalletConnect等)
|
||||
4. 点击"创建API钱包"
|
||||
5. **立即保存这3项:**
|
||||
- 主钱包地址(User)
|
||||
- API钱包地址(Signer)
|
||||
- API钱包私钥(⚠️ 仅显示一次!)
|
||||
|
||||
~~**步骤2**:为Aster配置`config.json`~~ *通过Web界面配置*
|
||||
|
||||
```json
|
||||
{
|
||||
"traders": [
|
||||
{
|
||||
"id": "aster_deepseek",
|
||||
"name": "Aster DeepSeek Trader",
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "aster",
|
||||
|
||||
"aster_user": "0xYOUR_MAIN_WALLET_ADDRESS_HERE",
|
||||
"aster_signer": "0xYOUR_API_WALLET_SIGNER_ADDRESS_HERE",
|
||||
"aster_private_key": "your_api_wallet_private_key_without_0x_prefix",
|
||||
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
"scan_interval_minutes": 3
|
||||
}
|
||||
],
|
||||
"use_default_coins": true,
|
||||
"api_server_port": 8080,
|
||||
"leverage": {
|
||||
"btc_eth_leverage": 5,
|
||||
"altcoin_leverage": 5
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**关键配置字段:**
|
||||
- `"exchange": "aster"` - 设置交易所为Aster
|
||||
- `aster_user` - 你的主钱包地址
|
||||
- `aster_signer` - API钱包地址(来自步骤1)
|
||||
- `aster_private_key` - API钱包私钥(去掉`0x`前缀)
|
||||
|
||||
**⚠️ 安全提示**:
|
||||
- API钱包与主钱包分离(额外的安全层)
|
||||
- 切勿分享API私钥
|
||||
- 你可以随时在[asterdex.com](https://www.asterdex.com/en/api-wallet)撤销API钱包访问
|
||||
|
||||
---
|
||||
|
||||
#### ⚔️ 专家模式:多Trader竞赛
|
||||
|
||||
用于运行多个AI trader相互竞争:
|
||||
|
||||
Reference in New Issue
Block a user