微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🕯️

专业级金融技术指标计算引擎

wickworks · v0.6.8
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 A 级 作者 psyb0t 公开目录收录
423 下载 0 安装 1.7k 收藏 21 浏览

简介

开源无状态 OHLC 技术分析服务,支持 67+ 技术指标与聪明钱概念(SMC)计算,零依赖、零状态、零意见输出,为量化交易与数据分析提供纯净数据原语。

原始描述

Stateless OHLC primitives service — candlestick bars in, technical indicators + Smart-Money-Concepts objects out. Single POST / takes a bars array + an indicators selection map and returns computed primitives; GET /metadata is the output-path catalog; GET /health. 67 primitives across trend (SMA/EMA + 15 more MAs, slope, Donchian, Ichimoku), momentum (RSI, MACD, Stoch, StochRSI, ADX, MFI, CCI, Williams %R, ROC, MOM, TSI, TRIX, UO, Fisher), volatility (ATR, NATR, Bollinger, Keltner, Squeeze), volume (VWAP, VWMA, OBV, AD, ADOSC, CMF, KVO), and SMC (order blocks, fair-value gaps, BOS/CHoCH, swing structure, S/R levels, liquidity, retracements, sessions, previous-period H/L) plus pre-baked summaries. camelCase, NaN-safe JSON. Unified REST + MCP (streamable-HTTP at /mcp — tools health / list_indicators / metadata / compute). Auth-less by default. Use when the user wants technical indicators or Smart-Money-Concepts primitives computed from OHLC candlestick bars.

通过你的 Agent 添加

安装目录:wickworks/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/wickworks/
Codex CLI~/.codex/skills/wickworks/
DeepSeek Harness~/.agents/skills/wickworks/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

wickworks 是一个专注于金融时间序列分析的无状态计算服务。用户通过 HTTP POST 请求提交 OHLC(开高低收)K线数据,指定所需技术指标或 Smart-Money-Concepts(SMC)结构,服务即时返回计算结果。支持双模式接入:标准 REST API(POST /)或 MCP 协议(GET /mcp),后者允许 AI Agent 直接通过 JSON-RPC 调用工具链。

技术指标覆盖五大类别:趋势类(21种移动平均线含 DEMA/TEMA/HMA/KAMA 等高级变体、Donchian 通道、一目均衡表)、动量类(RSI/MACD/随机指标/ADX/MFI/CCI/费舍尔变换等14项)、波动率类(ATR/Bollinger/Keltner/Squeeze)、成交量类(VWAP/VWMA/OBV/CMF/KVO),以及 SMC 专业结构识别(订单块、公允价值缺口、BOS/CHoCH、 swing 结构、支撑阻力、流动性池等)。

输入需为 UTC 时间戳的 K线数组,输出统一为 camelCase 命名、NaN 转 null 的安全 JSON。单次请求上限 5000 根 K线,部分指标需 50+ 根预热数据。

显著优点

  1. 纯粹性与安全性:无状态设计确保零数据持久化,无破坏性操作,不联网、不"打电话回家",输入数据仅内存计算后立即返回。
  2. 协议灵活性:同时暴露 REST 与 MCP 双端点,既适合传统后端集成,也支持现代 AI Agent 工具链生态。
  3. 指标深度:覆盖从经典到专业的 67+ 原语,特别是 SMC 结构识别填补了多数开源库的空白。
  4. 容器化零依赖:单一 Docker 镜像运行,默认无认证便于快速启动,网络层安全由部署方反向代理控制。
  5. 输出标准化:统一的响应信封设计,预置摘要(position/slope/momentum 等)降低下游处理成本。

潜在局限

  • 无市场数据源:必须自行提供 OHLC 数据,不具备数据订阅或行情接入能力。
  • 无预测与信号:仅输出原始指标值,不提供买卖建议、评分或预测模型,需用户自行构建决策层。
  • 计算边界限制:单次 5000 根 K线上限对高频长周期分析需分片处理;预热期要求可能导致历史数据不足时的计算失败。
  • 网络暴露风险:默认无内置认证,公网部署需依赖外部 TLS+认证代理,误配置可能导致未授权访问。

适合人群

量化交易开发者、技术分析研究员、金融数据工程师、AI 金融 Agent 构建者,以及需要将原始 K线数据快速转换为结构化技术指标的后端系统。特别适合已拥有行情数据源、需要批量计算多指标并集成至自有分析管道的团队。

常规风险

  • 性能瓶颈:高并发或复杂 SMC 计算可能消耗显著 CPU;建议压测后横向扩展容器实例。
  • 数据质量敏感:输出准确性完全依赖输入 K线的完整性(需包含 time/open/high/low/close/volume),脏数据会导致指标失真。
  • 依赖项:生产部署需 Docker 或 uv 环境,MCP 桥接需额外 WICKWORKS_TOKEN 代理层配置。
  • 版本兼容性:指标注册表随版本变化,建议缓存 /metadata 端点响应而非硬编码指标名称。

技能正文


name: wickworks description: Stateless OHLC primitives service — candlestick bars in, technical indicators + Smart-Money-Concepts objects out. Single POST / takes a bars array + an indicators selection map and returns computed primitives; GET /metadata is the output-path catalog; GET /health. 67 primitives across trend (SMA/EMA + 15 more MAs, slope, Donchian, Ichimoku), momentum (RSI, MACD, Stoch, StochRSI, ADX, MFI, CCI, Williams %R, ROC, MOM, TSI, TRIX, UO, Fisher), volatility (ATR, NATR, Bollinger, Keltner, Squeeze), volume (VWAP, VWMA, OBV, AD, ADOSC, CMF, KVO), and SMC (order blocks, fair-value gaps, BOS/CHoCH, swing structure, S/R levels, liquidity, retracements, sessions, previous-period H/L) plus pre-baked summaries. camelCase, NaN-safe JSON. Unified REST + MCP (streamable-HTTP at /mcp — tools health / list_indicators / metadata / compute). Auth-less by default. Use when the user wants technical indicators or Smart-Money-Concepts primitives computed from OHLC candlestick bars. homepage: https://github.com/psyb0t/docker-wickworks user-invocable: true metadata: { "openclaw": { "emoji": "🕯️", "primaryEnv": "WICKWORKS_URL", "requires": { "bins": ["docker", "curl"] } } }

wickworks

Stateless OHLC primitives service — bars in, indicators + Smart-Money-Concepts objects out. No scoring, no opinions, no state.

  • Trend — SMA/EMA + 15 other moving averages (dema, tema, hma, kama, zlma, t3, alma, jma, …), slope, linreg, Donchian channels, Ichimoku.
  • Momentum — RSI, MACD, Stochastic, StochRSI, ADX, MFI, CCI, Williams %R, ROC, MOM, TSI, TRIX, Ultimate Oscillator, Fisher.
  • Volatility — ATR, NATR, Bollinger Bands, Keltner Channels, Squeeze.
  • Volume — VWAP (anchored), VWMA, OBV, AD, ADOSC, CMF, KVO.
  • SMC — order blocks, fair-value gaps (fvg/fvgs), BOS/CHoCH (bosChoch), swing structure (swingLevels), S/R levels (srLevels), liquidity, retracements, sessions, previous-period H/L, levels.
  • Summaries — position, slope, momentum, volume, recentRange, price — pre-baked projections over the raw series.
  • Two ways to drive it — the REST API (POST /) and an MCP server (streamable-HTTP at /mcp). Same compute, same output envelope.

All JSON field names are camelCase; output is NaN-safe (NaN → null). Bars are UTC unix seconds; the container runs TZ=UTC.

For installation, configuration, and container setup, see references/setup.md.

Security & safety

  • Stateless + read-only — every call is self-contained: bars in, primitives out. wickworks stores nothing, writes no files, mutates nothing, and has no destructive operations. There is no state to corrupt and nothing to confirm before calling.
  • Auth-less by default, network-exposed — wickworks ships with no built-in auth; anyone who can reach the port can call it. Bind it to loopback (-p 127.0.0.1:8000:8000) and only expose it behind your own reverse proxy / VPN with auth if it needs to be reachable off-host. The MCP bridge's optional WICKWORKS_TOKEN is for a bearer your proxy enforces, not wickworks itself.
  • Consumer of the data you send — you hand it OHLC bars; it computes on them and returns numbers. It does not fetch, phone home, or transmit your bars anywhere. Point the skill only at a wickworks instance you (or a trusted operator) run.
  • Bounded input — the request is capped at MAX_BARS bars (default 5000); oversized requests get 413. Some indicators need a minimum warm-up (MIN_BARS, default 50) or they return an insufficient_bars error listing the deficits.

When To Use

  • The user has OHLC candlestick bars and wants technical indicators computed (RSI, MACD, Bollinger, Ichimoku, Supertrend, …).
  • The user wants Smart-Money-Concepts structure: order blocks, fair-value gaps, BOS/CHoCH, swing highs/lows, support/resistance, liquidity pools.
  • You're enriching a trading/market dataset server-side and want one call to return many primitives at once.

When NOT To Use

  • The user wants a forecast, a signal, or a buy/sell opinion — wickworks emits primitives only, no scoring. (Forecasting is a different service.)
  • You don't have OHLC bars (wickworks computes on bars you supply; it has no market-data feed of its own).
  • You need indicators over more than MAX_BARS bars in one call — window it down or raise MAX_BARS on the server.

Setup

export WICKWORKS_URL="http://localhost:8000"   # your running instance

See references/setup.md to stand one up (docker compose or uv).

The compute contract — POST /

One endpoint does the work. Body:

{
  "symbol": "EURUSD",
  "timeframe": "H1",
  "recentBars": 10,
  "bars": [
    { "time": 1700000000, "open": 1.08, "high": 1.09, "low": 1.07, "close": 1.085, "tickVolume": 1200 }
  ],
  "indicators": { "rsi": true, "macd": true }
}
  • bars — array of { time (UTC unix seconds), open, high, low, close, tickVolume?, realVolume? }. tickVolume/tick_volume and realVolume/real_volume aliases both accepted.
  • indicators — a map of output-name → spec. This is the whole point:
    • "rsi": true → run rsi with defaults, output under key rsi.
    • "rsi14": { "type": "rsi", "length": 14 } → run rsi with length=14, output under key rsi14 (the key is the output name, type picks the indicator).
    • "rsi": { "length": 21 } → key doubles as the type when no type is given.
  • symbol / timeframe — echoed back in the response.
  • recentBars — signal-like outputs within this many bars of the end get isRecent: true.

Response envelope: { symbol, timeframe, candles, <outputName>: <series-or-object>, ... } — one entry per requested output, each a series the same length as bars (or a structured object for multi-line indicators like macd / bbands / ichimoku, or an array of objects for SMC like orderBlocks / fvgs).

# Health
curl -s "$WICKWORKS_URL/health"

# The output-path catalog (labels + descriptions; static per version — cache it)
curl -s "$WICKWORKS_URL/metadata"

# Compute RSI + MACD + order blocks in one call
curl -s -X POST "$WICKWORKS_URL/" -H 'Content-Type: application/json' -d '{
  "symbol": "EURUSD", "timeframe": "H1",
  "bars": [ /* ...OHLC bars... */ ],
  "indicators": { "rsi": true, "macd": true, "orderBlocks": true }
}'

Indicator names

Pass any of these as indicators keys (also available at runtime via the MCP list_indicators tool):

ad, adosc, adx, alma, aroon, atr, bbands, bosChoch, cci, chandelierExit, cmf,
dema, donchian, ema, fisher, fvg, fvgs, fwma, hma, ichimoku, jma, kama, kc, kvo,
levels, linreg, liquidity, macd, mfi, mom, momentum, natr, obv, orderBlocks,
position, previousHighLow, price, psar, recentRange, retracements, rma, roc, rsi,
sessions, sinwma, slope, sma, squeeze, srLevels, stoch, stochrsi, supertrend,
swingLevels, swma, t3, tema, trima, trix, tsi, uo, volume, vortex, vwap, vwma,
willr, wma, zlma

Fetch GET /metadata (or the MCP metadata tool) for the human-readable label + description of every output path each of these produces.

MCP Endpoint (/mcp)

wickworks mounts a Model Context Protocol server over Streamable HTTP at /mcp, in the same process — so an agent can drive it over JSON-RPC without the REST client. It's stateless (no initialize handshake needed) and returns JSON. Tools:

Tool Args Returns
health — { ok, version }
list_indicators — { indicators: [...] } — the registered indicator types
metadata — the output-path catalog ({ version, count, entries })
compute bars, indicators, timeframe?, symbol?, recent_bars? the same envelope as POST /

Point an MCP client straight at the endpoint:

# Claude Code (native remote MCP — no bridge needed)
claude mcp add --transport http wickworks "$WICKWORKS_URL/mcp"

# Raw JSON-RPC (stateless — call tools/call directly)
curl -s "$WICKWORKS_URL/mcp/" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"compute","arguments":{
         "bars":[/* ...OHLC... */],"indicators":{"rsi":true},"symbol":"EURUSD","timeframe":"H1"}}}'

The @psyb0t/wickworks OpenClaw plugin is a thin stdio↔HTTP bridge to this endpoint for MCP clients that only speak local stdio servers.

Errors

  • 400 bars must not be empty / 400 indicators must not be empty — empty request pieces.
  • 400 { error: "insufficient_bars", available, deficits } — a requested indicator needs more warm-up bars than supplied; deficits lists which and how many.
  • 400 unknown indicator — the requested type/key isn't in the registry (see the indicator-names list above).
  • 413 too many bars — more than MAX_BARS bars in one request.

Over MCP the same failures come back as an isError tool result carrying the message, not an HTTP status.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

finance-accountingdata-analyticsapiautomationbackenddevelopment-engineering

同类 Skill