Tài Liệu & Hướng Dẫn
Documentation Center
Hướng dẫn chi tiết về cài đặt, cấu hình và sử dụng các dịch vụ của chúng tôi. Tài liệu kỹ thuật đầy đủ từ cơ bản đến nâng cao.
Bắt Đầu Nhanh
Chọn Dịch Vụ Của Bạn
Bắt Đầu
Hướng Dẫn Cơ Bản
1. Yêu Cầu Hệ Thống
Server/VPS:
- RAM: Tối thiểu 2GB (khuyến nghị 4GB+)
- CPU: 2 cores hoặc cao hơn
- Storage: 20GB+ SSD
- OS: Ubuntu 20.04+ / Debian 11+ / Windows Server 2019+
- Network: Kết nối internet ổn định, low latency
2. Cài Đặt Dependencies
Node.js & npm:
# Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
# Verify installation
node --version
npm --versionPython 3.9+:
sudo apt update
sudo apt install python3 python3-pip
python3 --version3. Cấu Hình API Keys
Tạo file .env trong thư mục gốc:
# Exchange API Keys
BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
# Telegram Bot
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
# Database
DATABASE_URL=your_database_urlBảo mật: Không commit file .env lên git. Thêm .env vào .gitignore
Trading Bots
Hướng Dẫn Trading Bot
Installation
# Clone repository (sau khi được cấp quyền)
git clone https://github.com/your-repo/trading-bot.git
cd trading-bot
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env với API keys của bạn
nano .envConfiguration
Chỉnh sửa file config.json:
{
"exchange": "binance",
"symbol": "BTCUSDT",
"strategy": "grid_trading",
"parameters": {
"gridLevels": 10,
"upperPrice": 50000,
"lowerPrice": 40000,
"quantity": 0.01,
"stopLoss": 3,
"takeProfit": 5
},
"riskManagement": {
"maxPositionSize": 1000,
"dailyLossLimit": 100
}
}Running
# Test mode (paper trading)
npm run test
# Production mode
npm start
# Run as background service
pm2 start npm --name "trading-bot" -- start
pm2 save
pm2 startupChat Bots
Hướng Dẫn Chat Bot
Telegram Bot Setup
- Chat với @BotFather trên Telegram
- Gửi lệnh
/newbot - Đặt tên cho bot của bạn
- Đặt username (phải kết thúc bằng "bot")
- Copy Bot Token và thêm vào file .env
# .env
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_CHAT_ID=your_chat_id# Start bot
npm run bot:telegramDiscord Bot Setup
- Truy cập Discord Developer Portal
- Click "New Application" và đặt tên
- Vào tab "Bot" → Click "Add Bot"
- Copy Bot Token
- Enable "Message Content Intent"
- Vào tab "OAuth2" → URL Generator → Chọn scope "bot" và permissions cần thiết
- Copy URL và mở để invite bot vào server
# .env
DISCORD_BOT_TOKEN=your_discord_token
DISCORD_CLIENT_ID=your_client_idMMO Automation
Hướng Dẫn MMO Bot
Multi-Account Management
Cấu hình file accounts.json:
{
"accounts": [
{
"id": "acc_001",
"username": "player1",
"password": "encrypted_password",
"proxy": "http://proxy1.com:8080",
"tasks": ["farm", "quest", "dungeon"]
},
{
"id": "acc_002",
"username": "player2",
"password": "encrypted_password",
"proxy": "http://proxy2.com:8080",
"tasks": ["farm", "trade"]
}
],
"schedule": {
"enabled": true,
"startTime": "08:00",
"endTime": "23:00"
}
}Proxy Configuration
Khuyến nghị sử dụng proxy để tránh bị phát hiện:
- Mỗi account nên có 1 proxy riêng
- Sử dụng residential proxy nếu có thể
- Thêm random delay giữa các hành động
API Reference
Custom Software API
Authentication
Tất cả API requests cần API key trong header:
POST /api/endpoint
Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonExample Endpoints
GET /api/status
Kiểm tra trạng thái bot
Response:
{
"status": "running",
"uptime": 3600,
"lastUpdate": "2025-10-31T10:00:00Z"
}POST /api/start
Khởi động bot
Request:
{
"strategy": "grid_trading",
"symbol": "BTCUSDT"
}
Response:
{
"success": true,
"message": "Bot started successfully"
}Troubleshooting
Xử Lý Sự Cố
❌ Bot không kết nối được với exchange
- Kiểm tra API key và secret có chính xác không
- Đảm bảo API key có quyền "Enable Trading"
- Kiểm tra whitelist IP trên sàn
- Test kết nối:
npm run test:connection
❌ Bot bị crash liên tục
- Kiểm tra logs:
pm2 logs trading-bot - Kiểm tra RAM và CPU usage
- Update dependencies:
npm update - Restart bot:
pm2 restart trading-bot
❌ Telegram bot không phản hồi
- Verify bot token trong .env
- Check bot đang chạy:
pm2 list - Test webhook:
curl https://api.telegram.org/bot{TOKEN}/getMe
Cần Hỗ Trợ?
Đội ngũ kỹ thuật của chúng tôi sẵn sàng hỗ trợ 24/7. Liên hệ ngay khi gặp vấn đề hoặc cần tư vấn.
Hỗ Trợ 24/7
Free Updates
Remote Setup