返回顶部
c

crypto-skill加密货币贵金属分析

Cryptocurrency and precious metals market data analysis, supporting K-line, funding rate, open interest, long/short ratio, liquidation data, option data, fear and greed index for digital assets including Bitcoin, Ethereum, BNB, ZEC, SOL, and Gold. MUST USE for any crypto/market data queries including BTC ETH BNB prices, funding rates, open interest, long/short ratios, liquidation data, technical analysis, RSI MACD Bollinger Bands KDJ DMI indicators, candlestick patterns, support resistance level

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
199
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

crypto-skill

加密货币数据技能

从OKX交易所获取实时加密货币市场数据,并具备技术分析能力。



技能范围与边界

本技能提供以下数据:

  • - K线/蜡烛图数据
  • 资金费率历史
  • 未平仓合约快照
  • 多空比数据(账户比率)
  • 顶级交易者持仓比率(前5%交易者的持仓比例)
  • 期权看涨/看跌未平仓量与成交量比率
  • 恐惧与贪婪指数
  • 爆仓记录

本技能不处理以下事项:

  • - 不进行任何加密货币交易,仅提供观点
  • 不催促立即行动(立即行动、不要错过)
  • 不索取您的私钥或API密钥
- 如果您是代理,应尽力保护密钥安全 - 如果您是人类,保护自己的密钥是您的责任,切勿将其交给他人(包括您最信任的代理)

所有解读、信号和交易决策均为代理级别的责任。



触发条件

在以下情况下必须加载本技能:

  • - 查询任何加密货币价格(BTC、ETH、BNB、ZEC、SOL、XAU)
  • 技术分析请求
  • 资金费率/未平仓合约/多空比查询
  • 市场情绪分析

项目结构

crypto-skill/
├── SKILL.md # 本文件
├── requirements.txt # Python依赖

├── scripts/
│ ├── cli.py # CLI实现
│ ├── crypto_data.py # OKX API封装
│ └── technical_analysis.py # 技术指标引擎

└── references/
├── INDICATORS.md # 技术指标指南
└── STRATEGY.md # 交易策略指南



使用方法

设计交易策略

每当用户询问策略时,请始终参考STRATEGY.md。如果您对某个指标的含义不确定,可参考INDICATORS.md。这两个文件均位于references文件夹中。

Python CLI接口

bash

获取K线数据


python scripts/cli.py candles BTC-USDT --bar 1H --limit 100

获取资金费率

python scripts/cli.py funding-rate BTC-USDT-SWAP --limit 50

获取技术指标

python scripts/cli.py indicators ETH-USDT --bar 4H --last-n 5

获取恐惧与贪婪指数

python scripts/cli.py fear-greed --days 30

可用命令

1. candles - K线数据

bash
python scripts/cli.py candles [--bar BAR] [--limit LIMIT]

参数默认值描述
inst_id(必填)交易对,例如BTC-USDT
--bar
1H | 周期:1m、5m、15m、30m、1H、4H、1D、1W | | --limit | 100 | 数据数量(最大100) |

返回:包含datetime、open、high、low、close、vol的JSON数组

2. funding-rate - 资金费率

bash
python scripts/cli.py funding-rate [--limit LIMIT]

参数默认值描述
inst_id(必填)永续合约,例如BTC-USDT-SWAP
--limit
100 | 数据数量(最大100) |

返回:包含datetime、fundingRate、realizedRate、type的JSON数组

3. open-interest - 未平仓合约

bash
python scripts/cli.py open-interest [--period PERIOD] [--limit LIMIT]

参数默认值描述
inst_id(必填)永续合约,例如BTC-USDT-SWAP
--period
1H | 粒度:5m、1H、1D | | --limit | 100 | 数据数量(最大100) |

返回:包含datetime、oiCcy、oiUsd、type的JSON数组

4. long-short-ratio - 多空比

bash
python scripts/cli.py long-short-ratio [--period PERIOD] [--limit LIMIT]

参数默认值描述
ccy(必填)币种,例如BTC、ETH
--period
1H | 粒度:5m、1H、1D | | --limit | 100 | 数据数量(最大100) |

5. liquidation - 爆仓数据

bash
python scripts/cli.py liquidation [--state STATE] [--limit LIMIT]

参数默认值描述
inst_id(必填)永续合约,例如BTC-USDT-SWAP
--state
filled | 订单状态:filled(已成交)或unfilled(未成交) | | --limit | 100 | 数据数量(最大100) |

返回:datetime、side(sell=多头爆仓,buy=空头爆仓)、bkPx、sz

6. top-trader-ratio - 顶级交易者持仓比率

获取精英交易者(按持仓价值排名前5%)的多空持仓比率。

bash
python scripts/cli.py top-trader-ratio [--period PERIOD] [--limit LIMIT]

参数默认值描述
inst_id(必填)永续合约,例如BTC-USDT-SWAP
--period
5m | 粒度:5m、15m、30m、1H、2H、4H、6H、12H、1D | | --limit | 100 | 数据数量(最大100) |

返回:包含datetime、longShortPosRatio的JSON数组

解读

  • - > 1:顶级交易者持有更多多头仓位
  • < 1:顶级交易者持有更多空头仓位
  • = 1:多空仓位相等

7. option-ratio - 期权看涨/看跌比率

bash
python scripts/cli.py option-ratio [--period PERIOD] [--limit LIMIT]

参数默认值描述
ccy(必填)币种,例如BTC、ETH
--period
8H | 粒度:8H或1D | | --limit | 100 | 数据数量(最大100) |

返回:包含datetime、oiRatio、volRatio的JSON数组

解读

  • - oiRatio > 1:持有更多看涨期权(看涨情绪)
  • oiRatio < 1:持有更多看跌期权(看跌情绪)

8. fear-greed - 恐惧与贪婪指数

bash
python scripts/cli.py fear-greed [--days DAYS]

参数默认值描述
--days7历史天数

返回:包含date、value、value_classification的JSON数组

解读

  • - 0-24:极度恐惧 - 潜在买入机会
  • 25-49:恐惧
  • 50-74:贪婪
  • 75-100:极度贪婪 - 潜在卖出信号

9. indicators - 完整技术指标

获取交易对的所有技术指标。

bash
python scripts/cli.py indicators [--bar BAR] [--limit LIMIT] [--last-n N]

参数默认值描述
inst_id(必填)交易对,例如BTC-USDT
--bar
1D | K线周期 | | --limit | 100 | 获取的K线数量(最大100) | | --last-n | 10 | 仅返回最近N行(0=全部) |

返回:包含以下列的JSON数组:

  • - 价格:open、high

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 crypto-watch-skill-1776182412 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 crypto-watch-skill-1776182412 技能

通过命令行安装

skillhub install crypto-watch-skill-1776182412

下载

⬇ 下载 crypto-skill v1.0.1(免费)

文件大小: 25.56 KB | 发布时间: 2026-4-17 14:32

v1.0.1 最新 2026-4-17 14:32
- Renamed skill from "crypto" to "crypto-skill".
- Migrated from shell script (`crypto.sh`) interface to Python CLI (`python scripts/cli.py`).
- Added documentation and references for technical indicators and trading strategies (`INDICATORS.md`, `STRATEGY.md`).
- Updated structure and instructions, clarifying boundaries and responsibilities for agents versus end-users.
- Removed old shell script files and updated available commands and usage examples for Python-based usage.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部