Agent Skills › TraderAlice/OpenAlice › market-data

market-data

GitHub

提供金融市场数据查询、K线获取及图表展示功能,支持OHLCV数据分析与交互式图表生成。

default/skills/market-data/SKILL.md TraderAlice/OpenAlice

Trigger Scenarios

查询股票或金融资产的历史价格数据 请求在对话中显示K线图或市场图表

Install

npx skills add TraderAlice/OpenAlice --skill market-data -g -y
More Options

Non-standard path

npx skills add https://github.com/TraderAlice/OpenAlice/tree/master/default/skills/market-data -g -y

Use without installing

npx skills use TraderAlice/OpenAlice@market-data

指定 Agent (Claude Code)

npx skills add TraderAlice/OpenAlice --skill market-data -a claude-code -g -y

安装 repo 全部 skill

npx skills add TraderAlice/OpenAlice --all -g -y

预览 repo 内 skill

npx skills add TraderAlice/OpenAlice --list

SKILL.md

Frontmatter
{
    "name": "market-data",
    "description": "Use for price history, OHLCV\/K-lines, market-data source discovery, or showing a candlestick chart in a conversation. Fetch data for local analysis or share a chart using OpenAlice market references."
}

Market data and charts

OpenAlice's Market UI and alice market share the same K-line service. Workspace shells already select their Alice Project. Outside a Workspace, use openalice exec --project <key> alice market ....

Find and read a series

alice market search-bars --query AAPL
alice market bars --bar-id 'yfinance|AAPL' --interval 1d --count 300 --output bars.json

Copy an exact barId from search results. It identifies a source as well as an instrument: two feeds for the same symbol are different series. Do not rewrite native symbols or guess broker account IDs. If source discovery is empty, alice market vendors shows configured vendor availability.

The result contains bars (OHLCV) and meta. Use the file in local Python, JavaScript or shell analysis; omit --output for stdout. Existing output files are not overwritten. alice market bars --help lists window options and an explicit --asset-class hint for vendor lookups that cannot resolve the class. The alice-analysis skill covers optional formula and snapshot shortcuts.

Check the returned coverage and freshness metadata, especially the earliest and latest records, fetch time and possible delay. The age of the last bar is not measured feed latency; market closures and bar boundaries matter. Do not present a delayed or historical observation as a live quote.

Show a chart in a reply

Write a market reference directly in reply prose when a chart helps:

[[market/yfinance|AAPL/1d]]

The syntax is [[market/{barId}/{interval}]]. Copy the discovered barId intact, including any slash in its symbol; the final slash separates the interval. Intervals are 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w (availability varies by source). The reference requests the latest 300 bars, not a saved snapshot of an earlier analysis.

GUI chat displays a card and opens the interactive chart in the right panel. Supported Connectors such as Telegram send a chart image at that position in the reply, preserving surrounding text order. Put the reference outside code when you want it rendered; code examples remain literal. Failed references do not silently switch feeds. There is no need to generate or attach a chart file.

For broker quotes, contracts, positions or orders, use alice-uta instead. A market reference only displays data; it does not place a trade.

Version History

  • 498de25 Current 2026-09-22 21:22

Same Skill Collection

default/skills/alice-analysis/SKILL.md
default/skills/alice-workspace/SKILL.md
default/skills/alice/SKILL.md
default/skills/delegate-autoquant/SKILL.md
default/skills/file-delivery/SKILL.md
default/skills/opencli-reader/SKILL.md
default/skills/self-scheduling/SKILL.md
default/skills/workspace-manager/SKILL.md
.claude/skills/tool-audit/SKILL.md
default/skills/alice-uta/SKILL.md
default/skills/build-thesis/SKILL.md
default/skills/retrospective/SKILL.md
default/skills/scan-value-chain/SKILL.md
default/skills/sector-rotation/SKILL.md
default/skills/traderhub/SKILL.md

Metadata

Files
0
Version
0d4faa9
Hash
26faad0f
Indexed
2026-09-22 21:22

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 03:45
浙ICP备14020137号-1