# AlphaEar Stock

> Search A-Share and HK stock tickers by name or code and retrieve OHLCV historical price data

- Skill: `wangfe/alphaear-stock` (Agent Skill)
- Install (CLI): `npx skillmds@latest add wangfe/alphaear-stock`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wangfe/alphaear-stock/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: wangfe (https://skillmd.com/u/wangfe)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/wangfe/alphaear-stock

---


# AlphaEar Stock Skill

## Overview

Search A-Share/HK 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".

## Dependencies

-   `pandas`, `requests`
-   `scripts/database_manager.py` (stock tables)

