alphaear-stock
Search A-Share/HK/US finance stock tickers and retrieve finance stock price history. Use when user asks about finance stock codes, recent price changes, or specific company finance stock info.
By rkiding · 1,209 installs
npx skills add rkiding/awesome-finance-skills --skill alphaear-stock
Source repository · Upstream listing
AlphaEar Stock Skill
Overview
Search A Share/HK/US stock tickers and retrieve historical price data (OHLCV).
Capabilities
1. Stock Search & Data
Use scripts/stock tools.py via StockTools .
Search : search ticker(query)
Fuzzy search by code or name (e.g., "Moutai", "600519").
Returns: List of {code, name} .
Get Price : get stock price(ticker, start date, end date)
Returns DataFrame with OHLCV data.
Dates format: "YYYY MM DD".
Get Fundamentals : get stock fundamentals(ticker)
Returns dict with sector, industry, market cap, PE ratio, and summary.
Supports A Share/HK/US stocks.
Dependencies
pandas , requests , akshare , yfinance
scripts/database manager.py (stock tables)
Notes
Proxy : For US stock data (via yfinance ), you may need to set environment variables if your network cannot reach Yahoo Finance directly:
A Share/HK : Data is primarily fetched via akshare (EastMoney), which usually works best with a direct connection in China. The tool automatically detects proxy issues and attempts direct connection for these markets.