← Back to Skills Marketplace
forevershu

Market Chart Renderer

by forevershu · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
429
Downloads
0
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install market-chart-renderer
Description
Render Chinese market charts from standardized bars data with MA5/10/20/60, MACD indicators, ECharts templates, and export to HTML/PNG.
README (SKILL.md)

market-chart-renderer

用于把标准化 bars 数据渲染成图表。

职责边界

负责:

  • 指标计算:至少 MA5/10/20/60MACD
  • ECharts 图表模板
  • 标题区(品种名 / 代码 / 周期)
  • 主图 K 线 + MA 均线
  • 副图默认 MACD
  • HTML / PNG 导出

不负责:

  • AkShare 数据抓取细节
  • 品种路由
  • 交易所查询逻辑

最小入口

直接生成甲醇 MA0 60m 图:

python3 skills/market-chart-renderer/render_ma0_60m.py

自定义:

python3 skills/market-chart-renderer/render_chart.py --symbol MA0 --period 60 --limit 120

输出位置

默认输出到:

  • output/generated/images/*.html
  • output/generated/images/*.png
  • output/generated/images/*.json

依赖关系

  • 数据来源:skills/akshare-futures-options-data/akshare_router_cn.py
  • 渲染方案:ECharts + headless Chrome
Usage Guidance
This skill appears coherent for rendering market charts. Before installing or running it: 1) Ensure you trust the referenced data-provider module (skills/akshare-futures-options-data/akshare_router_cn.py) because it will be imported and run at runtime. 2) Make sure pandas and a Chrome/Chromium binary are available if you want PNG output; otherwise it will produce HTML/JSON only. 3) Inspect the generated HTML (the skill likely embeds ECharts and possibly loads JS from CDNs) if you are concerned about network activity when opening the file in headless Chrome. 4) Run the skill in a sandbox or isolated environment if you plan to use untrusted data-provider code. There are no requests for secrets or unusual system access in the provided files.
Capability Analysis
Type: OpenClaw Skill Name: market-chart-renderer Version: 1.0.0 The market-chart-renderer skill bundle is designed to calculate financial indicators (MA, MACD) and render market charts into HTML and PNG formats using ECharts and headless Chrome. The primary logic in `render_chart.py` involves data processing with pandas and invoking a local browser via `subprocess` for image generation, which aligns with the stated purpose in `SKILL.md`. No evidence of data exfiltration, malicious command execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (render market charts with MA/MACD, ECharts, HTML/PNG export) match the provided code: indicator calculation, payload/option building, HTML generation, and a check for headless Chrome. The SKILL.md states an external data-provider dependency (akshare_router_cn), and the code imports that module as expected.
Instruction Scope
SKILL.md instructs running the included Python scripts and outputs to output/generated/images/*. The code writes files to that output directory and imports a sibling data-provider module (skills/akshare-futures-options-data/akshare_router_cn.py). Importing an external module at runtime means the skill will execute that module's code; this is expected for a dependency but you should verify the akshare_router_cn implementation. No evidence that the skill reads unrelated system files or environment variables beyond manipulating its own output directory.
Install Mechanism
There is no install spec and no downloads. This is effectively an instruction+code skill that relies on environment-provided headless Chrome/Chromium and Python libraries (pandas). No remote install URLs or archive extraction were present.
Credentials
The skill declares no required environment variables, no credentials, and the code does not attempt to read secrets. It does search PATH for common Chrome binaries (google-chrome/chromium/chromium-browser) which is coherent with its stated PNG export capability. The only external dependency that runs is the akshare_router_cn module; that is functionally required for obtaining 'bars' data but should be reviewed separately.
Persistence & Privilege
The skill does not request always:true or any elevated persistent privileges and does not modify other skills' configs. It writes outputs under its own output path as described in SKILL.md, which is appropriate for a renderer.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install market-chart-renderer
  3. After installation, invoke the skill by name or use /market-chart-renderer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
market-chart-renderer v1.0.0 – Initial release - Renders Chinese market charts from standardized bars data. - Supports indicator calculation: MA5/10/20/60 and MACD. - Provides ECharts chart templates for main and subplots (K-line with MA lines, MACD). - Exports charts as HTML, PNG, or JSON files. - Entry scripts for quick rendering and custom chart generation. - Integrates with AkShare data and uses headless Chrome for export.
Metadata
Slug market-chart-renderer
Version 1.0.0
License
All-time Installs 5
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is Market Chart Renderer?

Render Chinese market charts from standardized bars data with MA5/10/20/60, MACD indicators, ECharts templates, and export to HTML/PNG. It is an AI Agent Skill for Claude Code / OpenClaw, with 429 downloads so far.

How do I install Market Chart Renderer?

Run "/install market-chart-renderer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Market Chart Renderer free?

Yes, Market Chart Renderer is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Market Chart Renderer support?

Market Chart Renderer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Market Chart Renderer?

It is built and maintained by forevershu (@forevershu); the current version is v1.0.0.

💬 Comments