mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2025-12-06 13:54:41 +08:00
docs: add Bybit, OKX, and Lighter exchange support
- Mark Bybit, OKX as supported in CEX section - Mark Lighter as supported in Perp-DEX section - Add Bybit API setup guide - Add OKX API setup guide - Add Lighter agent wallet setup guide - Update all READMEs (EN, ZH-CN, JA, KO)
This commit is contained in:
@@ -189,8 +189,8 @@ NOFX is built with a modern, modular architecture:
|
||||
| Exchange | Status | Register (Fee Discount) | API Setup |
|
||||
|----------|--------|-------------------------|-----------|
|
||||
| **Binance** | ✅ Supported | [Register](https://www.binance.com/join?ref=NOFXENG) | [API Guide](docs/getting-started/binance-api.md) |
|
||||
| **OKX** | 🚧 Coming Soon | [Register](https://www.okx.com/join/1865360) | Coming Soon |
|
||||
| **Bybit** | 🚧 Coming Soon | [Register](https://partner.bybit.com/b/83856) | Coming Soon |
|
||||
| **Bybit** | ✅ Supported | [Register](https://partner.bybit.com/b/83856) | [API Guide](docs/getting-started/bybit-api.md) |
|
||||
| **OKX** | ✅ Supported | [Register](https://www.okx.com/join/1865360) | [API Guide](docs/getting-started/okx-api.md) |
|
||||
|
||||
### Perp-DEX (Decentralized Perpetual Exchanges)
|
||||
|
||||
@@ -198,6 +198,7 @@ NOFX is built with a modern, modular architecture:
|
||||
|----------|--------|-------------------------|--------------------|
|
||||
| **Hyperliquid** | ✅ Supported | [Register](https://app.hyperliquid.xyz/join/AITRADING) | [Agent Wallet Guide](docs/getting-started/hyperliquid-agent-wallet.md) |
|
||||
| **Aster DEX** | ✅ Supported | [Register](https://www.asterdex.com/en/referral/fdfc0e) | [API Wallet Guide](docs/getting-started/aster-api-wallet.md) |
|
||||
| **Lighter** | ✅ Supported | [Register](https://lighter.xyz) | [Agent Wallet Guide](docs/getting-started/lighter-agent-wallet.md) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
63
docs/getting-started/bybit-api.md
Normal file
63
docs/getting-started/bybit-api.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Bybit API Setup Guide
|
||||
|
||||
This guide explains how to create and configure Bybit API keys for use with NOFX.
|
||||
|
||||
## Create API Key
|
||||
|
||||
1. Log in to your [Bybit account](https://partner.bybit.com/b/83856)
|
||||
2. Go to **Account & Security** → **API Management**
|
||||
3. Click **Create New Key**
|
||||
4. Select **System-generated API Keys**
|
||||
5. Complete 2FA verification
|
||||
6. Name your API key (e.g., "NOFX Trading")
|
||||
|
||||
## Configure API Permissions
|
||||
|
||||
Enable the following permissions:
|
||||
|
||||
- ✅ **Read-Write** - Required for trading
|
||||
- ✅ **Contract** - Required for futures/perpetual trading
|
||||
- ❌ **Withdrawals** - Keep disabled for security
|
||||
|
||||
## IP Whitelist (Recommended)
|
||||
|
||||
For enhanced security:
|
||||
|
||||
1. Click **Edit** on your API key
|
||||
2. Add your server's IP address to the whitelist
|
||||
3. Save changes
|
||||
|
||||
## Save Your Keys
|
||||
|
||||
After creation, you'll see:
|
||||
- **API Key**: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
|
||||
- **API Secret**: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
|
||||
|
||||
⚠️ **Important**: Save the API Secret immediately - it's only shown once!
|
||||
|
||||
## Configure in NOFX
|
||||
|
||||
Add your API credentials through the NOFX web interface:
|
||||
|
||||
1. Open NOFX dashboard (http://localhost:3000)
|
||||
2. Go to **Exchange Configuration**
|
||||
3. Enable **Bybit**
|
||||
4. Enter your API Key and API Secret
|
||||
5. Save configuration
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Error | Solution |
|
||||
|-------|----------|
|
||||
| `Invalid API key` | Check if API key is correct |
|
||||
| `Signature error` | Check if API Secret is correct |
|
||||
| `IP not allowed` | Add your IP to whitelist |
|
||||
| `Permission denied` | Enable Contract trading permission |
|
||||
|
||||
## Security Best Practices
|
||||
|
||||
- Never share your API keys
|
||||
- Use IP whitelisting
|
||||
- Don't enable withdrawal permissions
|
||||
- Create separate API keys for different applications
|
||||
- Regularly rotate your API keys
|
||||
83
docs/getting-started/lighter-agent-wallet.md
Normal file
83
docs/getting-started/lighter-agent-wallet.md
Normal file
@@ -0,0 +1,83 @@
|
||||
# Lighter Agent Wallet Setup Guide
|
||||
|
||||
This guide explains how to create and configure an Agent Wallet for secure trading on Lighter.
|
||||
|
||||
## 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
|
||||
- ✅ **Separate Funds**: Keep main holdings safe
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- A Web3 wallet (MetaMask, WalletConnect, etc.)
|
||||
- Access to [Lighter](https://lighter.xyz)
|
||||
|
||||
## Step 1: Connect Your Main Wallet
|
||||
|
||||
1. Visit [Lighter](https://lighter.xyz)
|
||||
2. Click **Connect Wallet**
|
||||
3. Choose MetaMask, WalletConnect, or other Web3 wallet
|
||||
4. Approve the connection
|
||||
|
||||
## Step 2: Create Agent Wallet
|
||||
|
||||
1. Navigate to **Settings** or **API** section
|
||||
2. Look for **Agent Wallet** or **Trading Wallet** option
|
||||
3. Click **Create Agent** or **Generate New Wallet**
|
||||
4. Approve the transaction if required
|
||||
|
||||
## Step 3: Save Agent Credentials
|
||||
|
||||
After creation, save these immediately:
|
||||
|
||||
| Field | Description |
|
||||
|-------|-------------|
|
||||
| **Main Wallet Address** | Your connected wallet address |
|
||||
| **Agent Wallet Address** | Generated agent wallet address |
|
||||
| **Agent Private Key** | Private key for the agent wallet |
|
||||
|
||||
⚠️ **Important**: The private key is only shown once! Save it securely.
|
||||
|
||||
## Step 4: Configure in NOFX
|
||||
|
||||
Add your agent wallet through the NOFX web interface:
|
||||
|
||||
1. Open NOFX dashboard (http://localhost:3000)
|
||||
2. Go to **Exchange Configuration**
|
||||
3. Enable **Lighter**
|
||||
4. Enter:
|
||||
- **Wallet Address**: Your main wallet address (with `0x`)
|
||||
- **Private Key**: Agent private key (remove `0x` prefix)
|
||||
5. Save configuration
|
||||
|
||||
## Managing Your Agent
|
||||
|
||||
### Revoke Agent Access
|
||||
|
||||
1. Go to Lighter Settings
|
||||
2. Find your agent in the list
|
||||
3. Click **Revoke** or **Delete**
|
||||
|
||||
### Fund Your Account
|
||||
|
||||
1. Deposit supported assets to Lighter
|
||||
2. Agent wallet will trade using deposited funds
|
||||
|
||||
## Security Best Practices
|
||||
|
||||
- Use agent wallet instead of main wallet private key
|
||||
- Store agent private key securely
|
||||
- Revoke unused agents
|
||||
- Monitor agent activity regularly
|
||||
- Keep main wallet funds separate from trading funds
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Issue | Solution |
|
||||
|-------|----------|
|
||||
| Agent not working | Check if agent is still active |
|
||||
| Invalid signature | Ensure private key doesn't have `0x` prefix |
|
||||
| Insufficient funds | Deposit funds to your Lighter account |
|
||||
| Connection error | Check network settings |
|
||||
75
docs/getting-started/okx-api.md
Normal file
75
docs/getting-started/okx-api.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# OKX API Setup Guide
|
||||
|
||||
This guide explains how to create and configure OKX API keys for use with NOFX.
|
||||
|
||||
## Create API Key
|
||||
|
||||
1. Log in to your [OKX account](https://www.okx.com/join/1865360)
|
||||
2. Go to **Account** → **API**
|
||||
3. Click **Create API Key**
|
||||
4. Select **Trade** as the purpose
|
||||
5. Complete 2FA verification
|
||||
6. Name your API key (e.g., "NOFX Trading")
|
||||
|
||||
## Configure API Permissions
|
||||
|
||||
Enable the following permissions:
|
||||
|
||||
- ✅ **Read** - Required
|
||||
- ✅ **Trade** - Required for trading
|
||||
- ❌ **Withdraw** - Keep disabled for security
|
||||
|
||||
## Passphrase
|
||||
|
||||
OKX requires a passphrase in addition to API Key and Secret:
|
||||
|
||||
1. Create a strong passphrase during API creation
|
||||
2. Save it securely - you'll need it for configuration
|
||||
|
||||
## IP Whitelist (Recommended)
|
||||
|
||||
For enhanced security:
|
||||
|
||||
1. Click **Edit** on your API key
|
||||
2. Enable **IP Whitelist**
|
||||
3. Add your server's IP address
|
||||
4. Save changes
|
||||
|
||||
## Save Your Keys
|
||||
|
||||
After creation, you'll have:
|
||||
- **API Key**: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
||||
- **Secret Key**: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
|
||||
- **Passphrase**: Your created passphrase
|
||||
|
||||
⚠️ **Important**: Save the Secret Key immediately - it's only shown once!
|
||||
|
||||
## Configure in NOFX
|
||||
|
||||
Add your API credentials through the NOFX web interface:
|
||||
|
||||
1. Open NOFX dashboard (http://localhost:3000)
|
||||
2. Go to **Exchange Configuration**
|
||||
3. Enable **OKX**
|
||||
4. Enter:
|
||||
- **API Key**
|
||||
- **Secret Key**
|
||||
- **Passphrase**
|
||||
5. Save configuration
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Error | Solution |
|
||||
|-------|----------|
|
||||
| `Invalid API key` | Check if API key is correct |
|
||||
| `Invalid signature` | Check if Secret key and Passphrase are correct |
|
||||
| `IP not whitelisted` | Add your IP to whitelist or disable IP restriction |
|
||||
| `Permission denied` | Enable Trade permission in API settings |
|
||||
|
||||
## Security Best Practices
|
||||
|
||||
- Never share your API keys or passphrase
|
||||
- Use IP whitelisting
|
||||
- Don't enable withdrawal permissions
|
||||
- Create separate API keys for different applications
|
||||
- Regularly rotate your API keys
|
||||
@@ -219,8 +219,8 @@ nofx/
|
||||
| 取引所 | ステータス | 登録(手数料割引) | API設定 |
|
||||
|--------|------------|-------------------|---------|
|
||||
| **Binance** | ✅ 対応済み | [登録](https://www.binance.com/join?ref=NOFXJAPAN) | [APIガイド](../../getting-started/binance-api.md) |
|
||||
| **OKX** | 🚧 近日対応 | [登録](https://www.okx.com/join/1865360) | 近日公開 |
|
||||
| **Bybit** | 🚧 近日対応 | [登録](https://partner.bybit.com/b/83856) | 近日公開 |
|
||||
| **Bybit** | ✅ 対応済み | [登録](https://partner.bybit.com/b/83856) | [APIガイド](../../getting-started/bybit-api.md) |
|
||||
| **OKX** | ✅ 対応済み | [登録](https://www.okx.com/join/1865360) | [APIガイド](../../getting-started/okx-api.md) |
|
||||
|
||||
### Perp-DEX(分散型無期限取引所)
|
||||
|
||||
@@ -228,6 +228,7 @@ nofx/
|
||||
|--------|------------|-------------------|---------------------------|
|
||||
| **Hyperliquid** | ✅ 対応済み | [登録](https://app.hyperliquid.xyz/join/AITRADING) | [エージェントウォレットガイド](../../getting-started/hyperliquid-agent-wallet.md) |
|
||||
| **Aster DEX** | ✅ 対応済み | [登録](https://www.asterdex.com/en/referral/fdfc0e) | [APIウォレットガイド](../../getting-started/aster-api-wallet.md) |
|
||||
| **Lighter** | ✅ 対応済み | [登録](https://lighter.xyz) | [エージェントウォレットガイド](../../getting-started/lighter-agent-wallet.md) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -192,8 +192,8 @@ NOFX는 현대적이고 모듈화된 아키텍처로 구축되었습니다:
|
||||
| 거래소 | 상태 | 등록 (수수료 할인) | API 설정 |
|
||||
|--------|------|-------------------|----------|
|
||||
| **Binance** | ✅ 지원됨 | [등록](https://www.binance.com/join?ref=NOFXKOREA) | [API 가이드](../../getting-started/binance-api.md) |
|
||||
| **OKX** | 🚧 곧 지원 | [등록](https://www.okx.com/join/1865360) | 곧 공개 |
|
||||
| **Bybit** | 🚧 곧 지원 | [등록](https://partner.bybit.com/b/83856) | 곧 공개 |
|
||||
| **Bybit** | ✅ 지원됨 | [등록](https://partner.bybit.com/b/83856) | [API 가이드](../../getting-started/bybit-api.md) |
|
||||
| **OKX** | ✅ 지원됨 | [등록](https://www.okx.com/join/1865360) | [API 가이드](../../getting-started/okx-api.md) |
|
||||
|
||||
### Perp-DEX (탈중앙화 무기한 거래소)
|
||||
|
||||
@@ -201,6 +201,7 @@ NOFX는 현대적이고 모듈화된 아키텍처로 구축되었습니다:
|
||||
|--------|------|-------------------|-------------------|
|
||||
| **Hyperliquid** | ✅ 지원됨 | [등록](https://app.hyperliquid.xyz/join/AITRADING) | [에이전트 지갑 가이드](../../getting-started/hyperliquid-agent-wallet.md) |
|
||||
| **Aster DEX** | ✅ 지원됨 | [등록](https://www.asterdex.com/en/referral/fdfc0e) | [API 지갑 가이드](../../getting-started/aster-api-wallet.md) |
|
||||
| **Lighter** | ✅ 지원됨 | [등록](https://lighter.xyz) | [에이전트 지갑 가이드](../../getting-started/lighter-agent-wallet.md) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -191,8 +191,8 @@ NOFX 采用现代化的模块化架构:
|
||||
| 交易所 | 状态 | 注册(手续费优惠) | API设置 |
|
||||
|--------|------|-------------------|---------|
|
||||
| **Binance** | ✅ 已支持 | [注册](https://www.binance.com/join?ref=NOFXCHI) | [API指南](../../getting-started/binance-api.md) |
|
||||
| **OKX** | 🚧 即将支持 | [注册](https://www.okx.com/join/1865360) | 即将推出 |
|
||||
| **Bybit** | 🚧 即将支持 | [注册](https://partner.bybit.com/b/83856) | 即将推出 |
|
||||
| **Bybit** | ✅ 已支持 | [注册](https://partner.bybit.com/b/83856) | [API指南](../../getting-started/bybit-api.md) |
|
||||
| **OKX** | ✅ 已支持 | [注册](https://www.okx.com/join/1865360) | [API指南](../../getting-started/okx-api.md) |
|
||||
|
||||
### Perp-DEX(去中心化永续交易所)
|
||||
|
||||
@@ -200,6 +200,7 @@ NOFX 采用现代化的模块化架构:
|
||||
|--------|------|-------------------|--------------|
|
||||
| **Hyperliquid** | ✅ 已支持 | [注册](https://app.hyperliquid.xyz/join/AITRADING) | [代理钱包指南](../../getting-started/hyperliquid-agent-wallet.md) |
|
||||
| **Aster DEX** | ✅ 已支持 | [注册](https://www.asterdex.com/en/referral/fdfc0e) | [API钱包指南](../../getting-started/aster-api-wallet.md) |
|
||||
| **Lighter** | ✅ 已支持 | [注册](https://lighter.xyz) | [代理钱包指南](../../getting-started/lighter-agent-wallet.md) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user