alphaear-stock

Solid

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.

Testing & QA 2,386 stars 329 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
65
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ```bash export HTTP_PROXY="http://<proxy_ip>:<port>" export HTTPS_PROXY="http://<proxy_ip>:<port>" ``` - **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.

Details

Author
RKiding
Repository
RKiding/Awesome-finance-skills
Created
4 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

alphaear-news

Fetch hot finance news, unified trends, and prediction financial market data. Use when the user needs real-time financial news, trend reports from multiple finance sources (Weibo, Zhihu, WallstreetCN, etc.), or Polymarket finance market prediction data.

2,386 Updated 2 months ago
RKiding
AI & Automation Solid

alphaear-search

Perform finance web searches and local context searches. Use when the user needs general finance info from the web (Jina/DDG/Baidu) or needs to retrieve finance information from a local document store (RAG).

2,386 Updated 2 months ago
RKiding
AI & Automation Solid

stock-analyzer

A comprehensive stock deep analysis tool that combines real-time quotes, fundamental metrics, technical indicators, and growth analysis into a single professional report. Supports A-share, US stocks, HK stocks. Generates detailed investment recommendations with risk assessment and actionable trading strategies.

82 Updated today
freestylefly
AI & Automation Solid

stock-explorer

A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.

82 Updated today
freestylefly
AI & Automation Solid

stock-announcements

获取A股上市公司公告信息(真实数据)。基于AkShare从东方财富网获取当日全部公告,支持按股票代码筛选、关键词过滤。 适用于监控重大事件、业绩快报、股东变动、重组公告等投资决策关键信息。数据源:东方财富网(稳定可靠)。

82 Updated today
freestylefly