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,374 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,374 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,374 Updated 2 months ago
RKiding
AI & Automation Solid

stocks

Stock quotes, history, search, compare, crypto via Yahoo.

173,893 Updated today
NousResearch
AI & Automation Solid

alpha-vantage

Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.

2,202 Updated 1 weeks ago
foryourhealth111-pixel
AI & Automation Featured

alpha-vantage

Access 20+ years of global financial data: equities, options, forex, crypto, commodities, economic indicators, and 50+ technical indicators.

39,227 Updated today
sickn33