Agent Skills
› staskh/trading_skills
› price-history
price-history
GitHub获取股票历史OHLCV数据,支持按周期和间隔查询。适用于股价历史、过往表现、时间序列及图表分析场景。
触发场景
用户询问股票价格历史
用户需要历史数据或过往表现分析
用户请求查看价格随时间的变化趋势
用户进行图表分析
安装
npx skills add staskh/trading_skills --skill price-history -g -y
SKILL.md
Frontmatter
{
"name": "price-history",
"description": "Get historical price data (OHLCV) for a stock. Use when user asks about price history, historical data, past performance, price over time, or needs data for chart analysis.",
"dependencies": [
"trading-skills"
]
}
Price History
Fetch historical OHLCV data from Yahoo Finance.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/history.py SYMBOL [--period PERIOD] [--interval INTERVAL]
Arguments
SYMBOL- Ticker symbol--period- Time period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default: 1mo)--interval- Data interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo (default: 1d)
Output
Returns JSON with:
symbol- Tickerperiod- Requested periodinterval- Data intervaldata- Array of {date, open, high, low, close, volume}
Summarize key price movements, highs/lows, and trends.
Dependencies
yfinance
Timezone
All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.
版本历史
- cc30858 当前 2026-07-05 11:04
依赖关系
-
required
trading-skills


