Consortium AI 分析:AI 加密货币交易信号 - Openclaw Skills

作者:互联网

2026-03-27

AI教程

什么是 Consortium AI 分析?

Consortium AI 分析是一项专门的集成功能,旨在为您的开发环境带来机构级的市场情报。通过利用 Openclaw Skills,该工具可按需访问 Consortium AI 后端,为各种现货交易对提供全面的技术分析、风险评估和可操作的交易信号。它充当只读数据桥梁,确保您的代理工作流能够通过高置信度的市场数据获得支持,而无需复杂的人工图表监控。

该技能对于希望自动化市场研究的开发人员和交易者尤为宝贵。作为 Openclaw Skills 生态系统的一部分,它提供了一种结构化的方式来查询最新的市场情绪和交易摘要,从而在波动的加密货币市场中做出更明智的决策。无论您是寻求全球市场概览还是对特定代币进行深入研究,该技能都能直接向您的终端或应用程序提供结构化的、经 AI 解析的情报。

下载入口:https://github.com/openclaw/skills/tree/main/skills/webcraft3r/consortiumai-analysis

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install consortiumai-analysis

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 consortiumai-analysis。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Consortium AI 分析 应用场景

  • 获取任何活跃现货交易对的最新 AI 生成交易信号。
  • 查询 SOL、BTC 或 ETH 等代币的具体买入或卖出建议,以辅助交易执行。
  • 查看详细的技术理由和风险评估,以验证手动交易策略。
  • 使用 Openclaw Skills 将实时加密货币情绪和方案评分集成到自动化报告系统中。
  • 通过按基础代币符号过滤分析结果,监控特定代币的市场状况。
Consortium AI 分析 工作原理
  1. 用户发起分析请求,可以是全局请求,也可以是针对特定代币符号(如 SOL)的请求。
  2. 该技能验证 TRADING_ANALYSIS_API_KEY 环境变量以确保安全访问。
  3. 向 Consortium AI 后端 API 发送带有适当身份验证标头的 GET 请求。
  4. API 从数据库中检索最新的分析记录,重点关注现货交易对。
  5. 该技能处理 JSON 响应,提取关键数据点,如操作建议、方案评分和理由。
  6. 处理后的情报通过 Openclaw Skills 返回给用户,以便立即查看或进一步处理。

Consortium AI 分析 配置指南

要开始使用此技能,您必须首先通过在 X 上联系 Consortium AI 获取 API 密钥。获得凭据后,在终端中设置环境变量:

export TRADING_ANALYSIS_API_KEY=your-secret-api-key

然后,您可以通过运行随附的脚本来验证安装:

# 获取最新的整体分析
npm run latest

# 获取特定代币(例如 SOL)的分析
npm run token -- SOL

Consortium AI 分析 数据架构与分类体系

该技能返回一个为清晰度和程序化使用而优化的结构化数据对象。下表描述了 Openclaw Skills 此组件提供的主要数据点:

属性 描述
action 交易建议:买入 (BUY)、卖出 (SELL) 或观望 (WAIT)。
pair 交易对符号,例如 SOL_USDT 或 BTC_USD。
confidence AI 对该设置的确定程度(例如 HIGH)。
setupScore 0-100 的评分,代表交易的技术强度。
reasoning 包含技术、风险和情绪分析的详细对象。
tradeSummary AI 逻辑的简明易读摘要。
name: consortium-ai-analysis
displayName: Consortium AI Analysis
description: Gets the latest AI-generated crypto trading analysis (BUY / SELL / WAIT) for spot trading pairs from the Consortium AI.
requirements: TRADING_ANALYSIS_API_KEY.
author: Consortium AI
authorUrl: https://consortiumai.org/
keywords: ["crypto", "trading", "analysis", "BUY", "SELL", "API", "spot", "signals"]
category: trading

Instructions

This skill provides on-demand, read-only access to trading analysis generated by Consortium AI.

It calls an external API and returns the most recent trading decision.
The skill does not store data, schedule jobs, or send automatic notifications.

How to run (implementation)

From the skill directory, you can call the Trading Analysis API either by making HTTP requests (see API Reference) or by running the bundled script:

  • Latest analysis (any pair):
    node scripts/trading-analysis.js
    or npm run latest
  • Latest analysis for a token:
    node scripts/trading-analysis.js
    or npm run token --
    Example: node scripts/trading-analysis.js SOL

The script requires TRADING_ANALYSIS_API_KEY to be set. It prints the API response as JSON to stdout on success, or error JSON to stderr and exits non-zero on failure.


Setup

Set the API key as an environment variable before using this skill:

export TRADING_ANALYSIS_API_KEY=your-secret-api-key

To get an API key, contact Consortium AI on X.


API Reference

Backend API base URL: https://api.consortiumai.org

Endpoint: GET https://api.consortiumai.org/api/trading-analysis
Returns the latest trading-only AI analysis (no lending). Optional filter by base token.

Authentication

API key only (no JWT). Send the key in one of:

  • Header: x-api-key:
  • Header: Authorization: Bearer

Missing or invalid key → 401 with body { "success": false, "message": "Invalid or missing API key" }.

Query parameters

Parameter Type Required Description
token string No Base token symbol. When set, returns the latest analysis whose pair starts with that token (e.g. SOLSOL_USDT, SOL_USD). Examples: SOL, ETH, JUP, BTC.
  • No token: latest trading analysis overall (any pair).
  • With token: latest trading analysis for that base token only. Token is normalized (trim + uppercase).

Success response (200)

Body is trading-only. Example:

{
  "data": {
    "id": "...",
    "createdAt": "2026-02-09T14:00:00.000Z",
    "trading": {
      "action": "BUY",
      "pair": "SOL_USDT",
      "shouldExecute": true,
      "confidence": "HIGH",
      "setupScore": 78,
      "reasoning": {
        "marketCondition": "...",
        "technicalAnalysis": "...",
        "riskAssessment": "...",
        "pairSelection": "...",
        "comparativeAnalysis": { ... },
        "sentimentAndNews": { ... }
      },
      "tradeSummary": "Dual-model: BUY SOL_USDT (score: 78) – ...",
      "currentPositionsAnalysis": []
    }
  }
}
  • data.trading.action – BUY, SELL, or WAIT.
  • data.trading.pair – e.g. SOL_USDT.
  • data.trading.confidence, data.trading.setupScore, data.trading.reasoning, data.trading.tradeSummary – use these when summarizing for the user.

Error responses

Status When Body (example)
401 Missing or wrong API key { "success": false, "message": "Invalid or missing API key" }
404 No analysis in DB, or no analysis for given token { "data": { "success": false, "message": "No trading analysis found" } or "No trading analysis found for token: SOL"
500 Server/DB error { "data": { "success": false, "message": "Failed to fetch latest trading analysis", "error": "..." } }

Example requests

GET https://api.consortiumai.org/api/trading-analysis
x-api-key: 
GET https://api.consortiumai.org/api/trading-analysis?token=SOL
x-api-key: 
# Latest overall
curl -H "x-api-key: $TRADING_ANALYSIS_API_KEY" "https://api.consortiumai.org/api/trading-analysis"

# Latest for SOL
curl -H "x-api-key: $TRADING_ANALYSIS_API_KEY" "https://api.consortiumai.org/api/trading-analysis?token=SOL"

Behaviour summary

Scenario Result
Valid key, no token, at least one decision in DB 200 – latest trading analysis (any pair).
Valid key, token=SOL, at least one decision with pair like SOL_* 200 – latest trading analysis for SOL.
Valid key, token=XYZ, no decision with pair starting with XYZ_ 404 – "No trading analysis found for token: XYZ".
Valid key, no decisions in DB 404 – "No trading analysis found".
Missing or wrong API key 401 – "Invalid or missing API key".

Response always contains at most one decision (the most recent by createdAt). Trading only; no lending fields.


Available Functions

getLatestTradingAnalysis()

Purpose
Retrieve the most recent trading analysis available, regardless of trading pair.

Expected Behavior

  • Sends a GET request to https://api.consortiumai.org/api/trading-analysis
  • Authenticates with x-api-key: or Authorization: Bearer
  • Returns the latest trading decision (by createdAt)

Use When

  • The user asks for the latest market signal
  • No specific token is mentioned

Returns

  • Trading pair (e.g. BTC_USDT)
  • Action: BUY, SELL, or WAIT
  • Confidence level
  • Setup score
  • Trade summary
  • Detailed reasoning (technical, market, risk, sentiment)

getTradingAnalysisByToken(token)

Purpose
Retrieve the most recent trading analysis for a specific base token.

Parameters

  • token (string): Base token symbol (e.g. BTC, ETH, SOL, JUP)

Expected Behavior

  • Normalizes token (trim + uppercase)
  • Sends a GET request to https://api.consortiumai.org/api/trading-analysis?token=
  • Authenticates with x-api-key or Authorization: Bearer using TRADING_ANALYSIS_API_KEY
  • API matches any pair whose base is that token (e.g. SOL → SOL_USDT, SOL_USD); returns the most recent matching decision

Use When

  • The user asks about a specific coin
  • The user wants a trading decision for a given token

Returns

  • Trading pair for the token
  • Action: BUY, SELL, or WAIT
  • Confidence level
  • Setup score
  • Trade summary
  • Detailed reasoning