Stock Market Pro
Stock Market Pro is a fast, local-first market research toolkit.
Get clean price + fundamentals, generate publication-ready charts with indicator panels (RSI/MACD/BB/VWAP/ATR), and run a one-shot report that outputs both a summary and a high-res PNG.
Optional add-ons: quick news link sweep (DDG) + browser-first options/flow (Unusual Whales).
What you can do
- - Get real-time quotes (price + change)
- Summarize fundamentals (Market Cap, Forward PE, EPS, ROE)
- Print ASCII trends (terminal-friendly)
- Generate high-resolution PNG charts with overlays/panels:
- RSI / MACD / Bollinger Bands / VWAP / ATR
- - Run a one-shot report that prints a compact summary and emits a chart path
- Search news links via DuckDuckGo (ddgs)
- Open options / flow pages (browser-first, Unusual Whales)
Commands (Local)
This skill uses uv run --script for dependency handling.
If you don't have uv: install from https://github.com/astral-sh/uv
1) Quotes
CODEBLOCK0
2) Fundamentals
CODEBLOCK1
3) ASCII trend
CODEBLOCK2
4) Pro chart (PNG)
CODEBLOCK3
Indicators (optional)
CODEBLOCK4
- -
--rsi : RSI(14) - INLINECODE3 : MACD(12,26,9)
- INLINECODE4 : Bollinger Bands(20,2)
- INLINECODE5 : VWAP (cumulative over the selected range)
- INLINECODE6 : ATR(14)
5) One-shot report
Prints a compact text summary and generates a chart PNG.
CODEBLOCK5
Optional web add-ons (news/options) can be appended by the agent workflow.
Web Add-ons (Optional)
A) News search (DuckDuckGo via ddgs)
This skill vendors a helper script (
scripts/ddg_search.py).
Dependency:
CODEBLOCK6
Run:
CODEBLOCK7
B) Options / Flow (browser-first)
Unusual Whales frequently blocks scraping/headless access.
So the recommended approach is:
open the pages in a browser and summarize what you can see.
Quick link helper:
CODEBLOCK8
Common URLs:
- - INLINECODE9
- INLINECODE10
- INLINECODE11
Subcommands (yf.py)
yf.py supports:
- - INLINECODE13
- INLINECODE14
- INLINECODE15
- INLINECODE16
- INLINECODE17 (alias)
- INLINECODE18
- INLINECODE19 (best-effort; browser fallback recommended)
Check:
CODEBLOCK9
Ticker examples
- - US:
AAPL, NVDA, INLINECODE22 - KR:
005930.KS, INLINECODE24 - Crypto:
BTC-USD, INLINECODE26 - FX: INLINECODE27
股票市场专业版
股票市场专业版是一款快速、本地优先的市场研究工具包。
获取纯净价格+基本面数据,生成带有指标面板(RSI/MACD/布林带/VWAP/ATR)的可发表级图表,并运行一次性报告,输出摘要和高清PNG图片。
可选附加功能:快速新闻链接搜索(DuckDuckGo)+ 浏览器优先的期权/资金流(Unusual Whales)。
你可以做什么
- - 获取实时报价(价格+涨跌幅)
- 汇总基本面数据(市值、远期市盈率、每股收益、净资产收益率)
- 打印ASCII趋势图(终端友好)
- 生成带有叠加/面板的高清PNG图表:
- RSI / MACD / 布林带 / VWAP / ATR
- - 运行一次性报告,打印简洁摘要并输出图表路径
- 通过DuckDuckGo(ddgs)搜索新闻链接
- 打开期权/资金流页面(浏览器优先,Unusual Whales)
命令(本地)
此技能使用 uv run --script 进行依赖管理。
如果没有安装 uv:请从 https://github.com/astral-sh/uv 安装
1) 报价
bash
uv run --script scripts/yf.py price TSLA
简写
uv run --script scripts/yf.py TSLA
2) 基本面
bash
uv run --script scripts/yf.py fundamentals NVDA
3) ASCII趋势图
bash
uv run --script scripts/yf.py history AAPL 6mo
4) 专业图表(PNG)
bash
蜡烛图(默认)
uv run --script scripts/yf.py pro 000660.KS 6mo
折线图
uv run --script scripts/yf.py pro 000660.KS 6mo line
指标(可选)
bash
uv run --script scripts/yf.py pro TSLA 6mo --rsi --macd --bb
uv run --script scripts/yf.py pro TSLA 6mo --vwap --atr
- - --rsi : RSI(14)
- --macd: MACD(12,26,9)
- --bb : 布林带(20,2)
- --vwap: VWAP(在选定范围内累积)
- --atr : ATR(14)
5) 一次性报告
打印简洁文本摘要并生成图表PNG。
bash
uv run --script scripts/yf.py report 000660.KS 6mo
输出包含:CHART_PATH:/tmp/<...>.png
可选的网络附加功能(新闻/期权)可由代理工作流追加。
网络附加功能(可选)
A) 新闻搜索(通过 ddgs 的DuckDuckGo)
此技能附带一个辅助脚本(scripts/ddg_search.py)。
依赖:
bash
pip3 install -U ddgs
运行:
bash
python3 scripts/news.py NVDA --max 8
或
python3 scripts/ddg_search.py NVDA earnings guidance --kind news --max 8 --out md
B) 期权/资金流(浏览器优先)
Unusual Whales 经常屏蔽爬虫/无头访问。
因此推荐的方法是:
在浏览器中打开页面并总结你能看到的内容。
快速链接助手:
bash
python3 scripts/options_links.py NVDA
常用URL:
- - https://unusualwhales.com/stock/{TICKER}/overview
- https://unusualwhales.com/live-options-flow?ticker_symbol={TICKER}
- https://unusualwhales.com/stock/{TICKER}/options-flow-history
子命令(yf.py)
yf.py 支持:
- - price
- fundamentals
- history
- pro
- chart(别名)
- report
- option(尽力而为;推荐浏览器回退)
查看:
bash
python3 scripts/yf.py --help
股票代码示例
- - 美股:AAPL、NVDA、TSLA
- 韩股:005930.KS、000660.KS
- 加密货币:BTC-USD、ETH-KRW
- 外汇:USDKRW=X