market-data
Skill này làm gì
Skill này cho phép agent lấy lịch sử giá trong quá khứ, gọi là dữ liệu OHLCV hoặc K-line, và hiển thị biểu đồ nến. Dành cho người muốn lịch sử giá hoặc giá gần đây để tự phân tích.
Khi nào nên dùng
- ✓Khi bạn muốn lịch sử giá hằng ngày của một cổ phiếu trong vài tháng qua.
- ✓Khi bạn muốn một biểu đồ nến được hiển thị trong cuộc trò chuyện.
- ✓Khi bạn cần kiểm tra nguồn dữ liệu thị trường đến từ đâu hoặc nó mới đến mức nào.
Liên kết skill
https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/market-data/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem biểu đồ nến của cổ phiếu Apple trong vài tháng qua.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm đúng ID dữ liệu của cổ phiếu, tải các thanh giá và chi tiết của chúng, rồi hiển thị dữ liệu hoặc biểu đồ. Nó kiểm tra dữ liệu mới đến mức nào trước khi trình bày.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Đây có phải dữ liệu giá thời gian thực không?
Không phải lúc nào. Skill cảnh báo rằng giá bị trễ hoặc giá trong quá khứ không nên được trình bày như báo giá trực tiếp.
Làm sao biết giá đến từ nguồn nào?
Mỗi chuỗi có một ID riêng gọi tên nguồn của nó, nên hai nguồn cho cùng một cổ phiếu được giữ tách biệt.
Tôi có thể lưu dữ liệu giá ra file không?
Có. Skill mô tả việc lưu kết quả ra file để phân tích cục bộ.
Chi tiết
Mô tả gốc của tác giả
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.
repo: TraderAlice/OpenAlice
Độ phổ biến
- Sao GitHub
- 7.4k
- Vị trí xếp hạng
- #13265
- Giấy phép
- AGPL-3.0
- Cập nhật
- 23/10/2026
Bình luận
- …
Thêm skill từ kho mã này
alice-analysis
7.4kGiúp agent của bạn tính các chỉ báo chứng khoán, như đường trung bình động, bằng cách chạy các công thức ngắn và an toàn trên lịch sử giá.
alice-uta
7.4kGiúp agent của bạn kiểm tra tài khoản môi giới, danh mục, giá và lịch sử lệnh, và quản lý giao dịch với sự cẩn trọng thêm.
alice
7.4kGiúp agent của bạn tìm cổ phiếu, lấy dữ liệu nghiên cứu và làm việc với Inbox và Issues của nhóm qua công cụ alice.
build-thesis
7.4kGiúp agent của bạn xây dựng một luận điểm đầu tư cân bằng cho một cổ phiếu, kiểm tra cả số liệu và xu hướng thị trường, với cách rõ ràng để nó có thể sai.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.