coinx

star 0

使用 coinx CLI(ccxt + ta)查询加密货币价格、K线和多指标共振信号,输出机器可读 JSON,适用于新闻信号确认与量化分析。

makoshan By makoshan schedule Updated 3/7/2026

name: coinx description: 使用 coinx CLI(ccxt + ta)查询加密货币价格、K线和多指标共振信号,输出机器可读 JSON,适用于新闻信号确认与量化分析。 homepage: https://github.com/makoshan/coinx metadata: {"clawdbot":{"emoji":"📈","requires":{"bins":["python"]}}}

coinx

使用 coinx CLI 查询价格、K线和技术指标信号(不执行下单)。

项目链接

安装

  • Python 依赖:pip install ccxt pandas numpy ta pytest
  • 从 GitHub 安装 coinx:pip install git+https://github.com/makoshan/coinx.git

最简使用

  1. 价格:python -m coinx price --ex okx --symbol BTC/USDT
  2. 共振:python -m coinx ta confluence --ex okx --symbol BTC/USDT --tf-main 1h --tf-htf 4h --lookback 500
  3. 解析:读取 score.final_biasscore_main/score_htf 作为信号输入。

快速入门

  • 查看帮助:python -m coinx --help

常用命令

  • 价格快照:python -m coinx price --ex okx --symbol BTC/USDT
  • K线数据:python -m coinx candle --ex okx --symbol BTC/USDT --tf 1h --limit 200
  • 共振信号:python -m coinx ta confluence --ex okx --symbol BTC/USDT --tf-main 1h --tf-htf 4h --lookback 500

输出要点

  • 默认输出 JSON。
  • 关键字段:
    • price.last, price.chg24h_pct, price.vol24h
    • indicators(RSI/MACD/OBV/VWMA/MFI/CCI/CMF/ATR/MA/SAR/Breakout/日周RSI)
    • signalstrend_gate_long, entry_filter_long, tp_filter
    • scorescore_main, score_htf, final_bias
    • structure.events(如 SOW, LPSY, ST

退出码

  • 0 成功
  • 2 参数错误
  • 3 数据错误
  • 4 计算错误
  • 1 其他内部错误

集成建议

  • score.final_bias 作为方向过滤信号。
  • score_main/score_htf 作为强度分层输入。
  • breakout_high40/breakout_low40 作为关键位确认条件。
Install via CLI
npx skills add https://github.com/makoshan/skills --skill coinx
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator