Skill: atvisions/cooltrade-market-pro (version 1.0.6)

--- name: cooltrade-market-pro display_name: CoolTrade 股票行情与新闻解析 description: 获取中国 A 股、美股、全球大盘以及期市的行情与深度财务面分析，支持加密货币实时行情与买卖信号，AI 生成每日 A 股精华日报，并提供多通道（微信/Telegram）股价预警推送。 tags: Finance, Trading, Stocks, Crypto version: 1.4.0 --- # CoolTrade 股票与加密货币分析大师 本技能允许您的 Agent 独立访问 CoolTrade 的专业金融数据库，获取实时的 A 股/美股/加密货币行情、技术指标买卖信号、市场新闻，并支持智能预警推送。 ### 🔑 安装时需要填写您的 API Key 安装过程中，龙虾会提示您输入 `COOLTRADE_API_KEY`： 1. 访问 [CoolTrade](https://cooltrade.xyz) 注册账号（免费）。 2. 进入控制台左下角 **「API Keys」** 页面，点击生成，复制您的 `sk-` 开头密钥。 3. 将密钥粘贴到龙虾安装时的输入框，每次调用都会使用您自己的额度。 --- ### 技能一：A股深度行情查询 获取任意 A 股近期日线 K 线（最近10天）+ 市盈率、市净率、总市值等基本面指标。 ### 技能二：A股资讯与公告监控 获取目标股票近1个月内的重大财经新闻，帮助识别重大事件。 ### 技能三：A股核心财务指标 查询上市公司近4个季度的 EPS、ROE、流动比率、负债率等核心财务与估值数据。 ### 技能四：全球大盘指数监控 获取沪深、纳斯达克等主流大盘指数的走势与行情，快速感知宏观市场情绪。 ### 技能五：美股行情追踪 查询 AAPL、TSLA 等美股资产的近期日线量价数据。 ### 技能六：国内期货行情追踪 查询国内各期交所主力合约（商品期货、股指期货）的价格与持仓变动。 ### 技能七：AI 每日 A 股精华日报 由 Claude 大模型实时生成的 A 股每日精华简报，包含大盘概览、主线逻辑、关键异动、避险提示和明日展望。 **使用方式：** - **随时问**：直接对话"给我今日 A 股日报" / "今天大盘怎样？"，Agent 立即生成。 - **定时推**：在龙虾「定时任务」里设置每天 09:00 / 15:30 自动触发，推送到您的微信或其他渠道。 ### 技能八：加密货币行情与买卖信号 🆕 输入任意加密货币名称或代码（BTC、ETH、SOL、比特币……），AI 自动计算技术指标并给出买卖点位参考。 **包含数据：** - **实时价格**：当前价、24小时涨跌幅、最高/最低价、成交量 - **技术指标**：MA5 / MA10 / MA20 均线、RSI（超买超卖判断）、MACD（多空动能） - **综合信号**：🟢 偏多 / 🟡 中性 / 🔴 偏空，附原因说明 - **交易参考**：买入区间、压力位、止盈目标（T1/T2）、止损位 **对话示例：** > "BTC 现在怎么样？" > "以太坊的买点在哪？" > "SOL 能买吗？" ### 技能九：创建股价预警 🆕 用大白话设置预警条件，系统自动监控并推送通知到微信或 Telegram。 **支持条件：** - `price_below` / `price_above` — 价格跌破/涨破指定价位 - `pct_down` / `pct_up` — 单日跌幅/涨幅超过指定百分比 - `ma_break_below` / `ma_break_above` — 跌破/突破 N 日均线 **对话示例：** > "帮我监控平安银行，跌破 10 元发微信给我" > "茅台涨幅超 5% 时通知我 Telegram" ### 技能十：查看预警列表 🆕 查看所有已设置的预警及其当前状态（监控中/已触发/已关闭）。 > "我有哪些预警？" / "查看我的监控列表" ### 技能十一：关闭/删除预警 🆕 按 ID 关闭指定预警。先用技能十查到 ID，再告诉 Agent 关闭哪一条。 > "删除平安银行的预警" / "取消 id=3 的预警"

path: openclaw.json
content: {
  "credentials": [
    {
      "name": "COOLTRADE_API_KEY",
      "displayName": "CoolTrade API Key",
      "description": "Your personal CoolTrade API key (starts with sk-). Get yours at https://cooltrade.xyz → API Keys.",
      "required": true
    }
  ],
  "skills": [
    {
      "name": "cooltrade_stock_quote",
      "description": "Get deep market quote and financial fundamentals for any A-share stock (China Market). Provide stock name or code.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/ashare/quote/",
        "params": {
          "stock": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_stock_news",
      "description": "Monitor the latest relevant news, market announcements, and abnormal movements for specified China A-share stocks. Provide stock name or code.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/ashare/news/",
        "params": {
          "stock": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_financials",
      "description": "Fetch core financial and valuation parameters (EPS, ROE, P/E, debt ratios, etc.) for China A-share companies to analyze deep fundamentals. Provide stock name or code.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/ashare/financials/",
        "params": {
          "stock": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_index",
      "description": "Get daily quotes and trends for global/China market indexes (e.g. SSE, SZSE, NASDAQ) to evaluate macroeconomic environment. Provide index name or code.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/global/index/",
        "params": {
          "index": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_us_stock",
      "description": "Get market quotes and recent daily performance for US stocks (e.g. AAPL, TSLA). Provide US stock name or ticker symbol.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/us_stock/quote/",
        "params": {
          "stock": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_futures",
      "description": "Get market prices, open interest (OI), and trends for domestic China futures contracts (commodities, financial futures). Provide futures product name or contract code.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/futures/quote/",
        "params": {
          "symbol": "{{query}}"
        }
      }
    },
    {
      "name": "cooltrade_daily_report",
      "description": "Generate today's A-share market daily briefing — an AI-distilled summary of market sentiment, main themes, key events, risk alerts, and tomorrow's outlook. Call this when the user asks for a daily report, market summary, or today's market recap.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/daily-report/"
      }
    },
    {
      "name": "cooltrade_crypto_quote",
      "description": "Get real-time crypto market quote, technical indicators (MA5/10/20, RSI, MACD), and AI-generated buy/sell signals for any cryptocurrency. Call this when user asks about BTC, ETH, SOL or any crypto coin price, trend, buy point, or sell point. Provide the coin symbol (e.g. BTC, ETH) or full name (e.g. Bitcoin).",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/crypto/quote/",
        "params": {
          "symbol": "{{symbol}}"
        }
      }
    },
    {
      "name": "cooltrade_crypto_screener",
      "description": "Scan 15+ major cryptocurrencies in real-time, score each one using technical indicators (MA alignment, RSI, MACD), and return the Top 5 buy candidates ranked by signal strength. Call this when user asks: which crypto should I buy, recommend some coins, best crypto to buy now, or any similar screener/recommendation request.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/crypto/screener/",
        "params": {
          "top": "{{top_n}}"
        }
      }
    },
    {
      "name": "cooltrade_alert_create",
      "description": "Create a stock price alert for any A-share stock. Call this when the user says things like 'notify me when X drops below Y', 'alert me if stock breaks MA60', 'tell me when price rises above Z'. Supported conditions: price_below, price_above, pct_down (daily drop %), pct_up (daily rise %), ma_break_below (breaks below N-day MA), ma_break_above (breaks above N-day MA). Channels: weixin, telegram, both.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/alert/create/",
        "params": {
          "stock": "{{stock}}",
          "condition": "{{condition}}",
          "threshold": "{{threshold}}",
          "channel": "{{channel}}",
          "repeat": "{{repeat}}",
          "note": "{{note}}"
        }
      }
    },
    {
      "name": "cooltrade_alert_list",
      "description": "List all stock price alerts for the current user. Call this when the user asks 'show my alerts', 'what alerts do I have', 'check my watchlist alerts'.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/alert/list/"
      }
    },
    {
      "name": "cooltrade_alert_delete",
      "description": "Disable or delete a stock price alert by its ID. Call this when the user says 'cancel alert', 'remove my alert', 'stop monitoring'. First use cooltrade_alert_list to get the alert ID.",
      "type": "http",
      "config": {
        "method": "GET",
        "url": "https://api.cooltrade.xyz/api/market/agent-skills/{{COOLTRADE_API_KEY}}/alert/delete/",
        "params": {
          "id": "{{alert_id}}"
        }
      }
    }
  ]
}

path: index.js
content: const path = require('path');
const fs = require('fs');

module.exports = {
  getSkills: () => {
    const configPath = path.join(__dirname, 'openclaw.json');
    if (fs.existsSync(configPath)) {
      const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
      return config.skills || [];
    }
    return [];
  }
};


path: README.md
content: # CoolTrade Agent Skills for OpenClaw

This package provides native A-Share market integration (China Stock Market) for your AI Agents via OpenClaw.

## Prerequisites
1. Register an account at [CoolTrade](https://cooltrade.xyz)
2. Obtain an Agent API Key from the CoolTrade dashboard

## Usage
Simply replace `sk-XXXXX` in the url configs with your actual CoolTrade API Key in OpenClaw ecosystem.

## Available Skills

- **cooltrade_stock_quote**: Get deep market quote and financial fundamentals for any A-share stock (China Market).
- **cooltrade_stock_news**: Monitor the latest relevant news, market announcements, and abnormal movements for specified China A-share stocks.
- **cooltrade_financials**: Fetch core financial and valuation parameters (EPS, ROE, P/E, debt ratios, etc.) for China A-share companies to analyze deep fundamentals.
- **cooltrade_index**: Get daily quotes and trends for global/China market indexes (e.g. SSE, SZSE, NASDAQ) to evaluate macroeconomic environment.
- **cooltrade_us_stock**: Get market quotes and recent daily performance for US stocks (e.g. AAPL, TSLA).
- **cooltrade_futures**: Get market prices, open interest (OI), and trends for domestic China futures contracts (commodities, financial futures).


path: package.json
content: {
  "name": "cooltrade-openclaw-skills",
  "version": "1.4.0",
  "description": "CoolTrade Agent Skills for OpenClaw. A-share/US stock/crypto quotes, financials, global indexes, futures, AI daily report, price alerts, and crypto buy/sell signals.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "openclaw",
    "skill",
    "clawhub",
    "finance",
    "trading",
    "cooltrade",
    "market",
    "a-share"
  ],
  "author": "CoolTrade",
  "license": "MIT"
}


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)