by 6551-Team
NexusQuant: AI-driven multi-strategy crypto trading on VoltAgent. Gate.io & Binance, adaptive risk, Node.js/TypeScript, AGPL-3.0.
# Add to your Claude Code skills
git clone https://github.com/6551-Team/ai-auto-tradingGuides for using ai agents skills like ai-auto-trading.
Last scanned: 5/30/2026
{
"issues": [
{
"type": "clone-failed",
"message": "Could not clone repository",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-05-30T16:19:06.163Z",
"npmAuditRan": false,
"pipAuditRan": false
}ai-auto-trading is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by 6551-Team. NexusQuant: AI-driven multi-strategy crypto trading on VoltAgent. Gate.io & Binance, adaptive risk, Node.js/TypeScript, AGPL-3.0. It has 134 GitHub stars.
ai-auto-trading returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/6551-Team/ai-auto-trading" and add it to your Claude Code skills directory (see the Installation section above).
ai-auto-trading is primarily written in TypeScript. It is open-source under 6551-Team on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai-auto-trading against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
AI 驱动的多策略、多时间框架加密货币交易监控系统
Cryptocurrency Trading Monitor - AI-Driven Multi-Strategy, Multi-Timeframe System
| English | 简体中文 | 日本語 |
|---|
灵枢量化(NexusQuant) 是新一代 AI 驱动的加密货币自动交易系统,通过深度融合大语言模型与机构级交易实践,从根本上重新定义了量化交易。
AI 优先:系统将 AI 视为自主交易代理,赋予其对市场分析、策略选择、持仓管理和风险控制的完全决策权。
自适应智能:通过市场状态识别引擎(8种市场状态)、动态策略路由器和智能机会评分系统,实现真正的市场适应性。
专业风控:ATR 自适应止损、R-Multiple 分批止盈、服务器端条件单保护、数据库事务回滚机制。

自动识别 8 种市场状态(上涨趋势超卖、下跌趋势超买、趋势延续、震荡超买超卖等),智能路由到最优策略,避免假突破,捕捉趋势反转。
专业风险倍数思维,自动化分批止盈(2R、3R、5R),每次部分止盈后自动移动止损到保本或更高。
数据库事务回滚机制、不一致状态记录、幂等性保护,确保交易所与数据库数据完全一致。
多因子量化评分(信号强度40%、风险回报25%、市场条件20%、持仓相关性15%),只开高分交易。
实时三色健康指示(🟢🟡🔴)、自动化健康检查、孤儿订单检测清理、主动告警。
┌─────────────────────────────────────────────────────────┐
│ Trading Agent (AI) │
│ (DeepSeek V3.2 / Gork4 / Claude) │
└─────────────────┬───────────────────────────────────────┘
│
├─── Market Data Analysis
├─── Position Management
└─── Trade Execution Decisions
┌─────────────────┴───────────────────────────────────────┐
│ VoltAgent Core │
│ (Agent Orchestration & Tool Routing) │
└─────────┬───────────────────────────────────┬───────────┘
│ │
┌─────────┴──────────┐ ┌───────────┴───────────┐
│ Trading Tools │ │ Gate.io API Client │
│ │ │ │
│ - Market Data │◄───────────┤ - Order Management │
│ - Account Info │ │ - Position Query │
│ - Trade Execution │ │ - Market Data Stream │
└─────────┬──────────┘ └───────────────────────┘
│
┌─────────┴──────────┐
│ LibSQL Database │
│ │
│ - Account History │
│ - Trade Signals │
│ - Agent Decisions │
└────────────────────┘
| 组件 | 技术 | 说明 |
|---|---|---|
| 框架 | VoltAgent | AI Agent 编排与工具调用 |
| AI 模型 | OpenAI 兼容 API | DeepSeek V3.2, Grok 4, Claude 4.5, Gemini 2.5 等 |
| 交易所 | Gate.io / Binance | 永续合约交易(测试网 & 正式网) |
| 数据库 | LibSQL (SQLite) | 本地数据持久化 |
| Web 服务 | Hono | 高性能监控界面 |
| 语言 | TypeScript | 类型安全开发 |
| 运行时 | Node.js 20.19+ | JavaScript 运行环境 |
本项目支持 Gate.io 和 Binance 两大交易所。请根据您的需求选择:
VQBEAwgL> **新手建议**:先使用测试网环境学习,零风险体验完整功能。
> - Gate.io 测试网: https://testnet.gate.com/
> - Binance 测试网: https://testnet.binancefuture.com/
# 克隆仓库
git clone <repository-url>
cd ai-auto-trading
# 安装依赖
npm install
复制 .env.example 为 .env 并配置:
cp .env.example .env
nano .env
关键配置项:
# 服务器
PORT=3100
# 交易配置
TRADING_INTERVAL_MINUTES=5 # 交易周期(分钟)
TRADING_STRATEGY=balanced # 策略:ultra-short/swing-trend/conservative/balanced/aggressive
TRADING_SYMBOLS=BTC,ETH,SOL,BNB,XRP # 交易币种(逗号分隔)
MAX_LEVERAGE=15 # 最大杠杆
MAX_POSITIONS=5 # 最大持仓数
INITIAL_BALANCE=1000 # 初始资金
ACCOUNT_STOP_LOSS_USDT=50 # 止损线
ACCOUNT_TAKE_PROFIT_USDT=20000 # 止盈线
# 科学止损系统(推荐开启)
ENABLE_SCIENTIFIC_STOP_LOSS=true # 启用科学止损
ENABLE_TRAILING_STOP_LOSS=true # 启用追踪止损
ENABLE_STOP_LOSS_FILTER=true # 启用开仓过滤
# 交易所选择(gate 或 binance)
EXCHANGE_NAME=gate
# Gate.io 配置(当 EXCHANGE_NAME=gate 时必需)
GATE_API_KEY=your_api_key_here
GATE_API_SECRET=your_api_secret_here
GATE_USE_TESTNET=true
# Binance 配置(当 EXCHANGE_NAME=binance 时必需)
BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
BINANCE_USE_TESTNET=true
# AI 模型(OpenAI 兼容)
OPENAI_API_KEY=your_api_key_here
OPENAI_BASE_URL=https://openrouter.ai/api/v1
AI_MODEL_NAME=deepseek/deepseek-v3.2-exp
API 密钥获取:
AI 模型:
交易所:
VQBEAwgL 可获返佣)npm run db:init
# 开发模式(热重载)
npm run dev
# 生产模式
npm run trading:start
浏览器打开:http://localhost:3100
查看详细文档:
多模型支持:
上下文化分析:
5 种交易策略:
| 策略 | 月收益目标 | 风险 | 最适场景 |
|---|---|---|---|
| 超短线 | 40%+ | 高 | 剥头皮、高频 |
| 波段趋势 | 40%+ | 高 | 捕捉多日趋势 |
| 稳健 | 10-20% | 低 | 资本保值 |
| 平衡 ⭐ | 20-40% | 中 | 推荐使用 |
| 激进 | 40%+ | 高 | 追求最大增长 |
交易所:
订单执行:
实时 Web 仪表板(http://localhost:3100):
账户概览
活跃持仓
交易历史
交易统计与绩效分析 📈
对交易员的价值:
AI 决策透明度
系统健康状态 🟢🟡🔴
科学止损系统:
R-Multiple 分批止盈:
传统风控:
⚠️ 本系统仅供教育和研究目的。加密货币交易具有重大风险,可能导致资金损失。
本项目采用 GNU Affero General Public License v3.0 (AGPL-3.0) 协议。
完整条款请参见 LICENSE 文件。
✅ 获得交易手续费返佣 ✅ 支持开源项目持续开发 ✅ 完全免费,无额外费用
如果您还没有 Gate.io 账户,推荐通过邀请码注册:
VQBEAwgL如果您还没有 Binance 账户,推荐通过邀请码注册:
GRO_28502_NCRQJ提示:测试网和正式网使用同一账户,建议先在测试网充分测试。使用邀请码注册,您将获得交易返佣优惠,同时帮助维护这个开源项目的长期运营。这对您和项目都有益,且完全免费无任何额外费用。
欢迎贡献!请参考完整文档了解贡献指南。