Skip to content
Back to skills

Alphaear Stock

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 12, 2026
ai-agentsgobashgitdatabase

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill alphaear-stock --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Alphaear Stock?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Alphaear Stock
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-alphaear-stock/badge)](https://www.skillsdirectory.com/skills/thedixitjain-alphaear-stock)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: alphaear-stock
description: "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."
category: business-and-finance
source_repo: RKiding/Awesome-finance-skills
source_path: "skills/alphaear-stock/SKILL.md"
source_url: https://github.com/RKiding/Awesome-finance-skills/blob/HEAD/skills/alphaear-stock/SKILL.md
---


# 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.

---

**Source:** [`RKiding/Awesome-finance-skills`](https://github.com/RKiding/Awesome-finance-skills) → `skills/alphaear-stock/SKILL.md`

Files in this skill

  • SKILL.md1.9 KB
  • scripts/database_manager.py4.1 KB
  • scripts/stock_tools.py19.4 KB
  • tests/test_stock.py634 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.