Skip to content
Finance
Skill

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

BOOST
From plugin
awesome-finance-skills
3.1k10 skills
Install
$ npx -y skills add RKiding/Awesome-finance-skills --skill alphaear-stock --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/alphaear-stock

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

alphaear-stock.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.

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:
    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.
Read more
Ships withawesome-finance-skills

Transform your AI agent into a Wall Street analyst in seconds. A plug-and-play skill collection that empowers LLMs with real-time news, stock data, sentiment analysis, logic visualization, and market prediction capabilities.

Get the whole plugin
Stats
3,057
Stars
386
Forks
Quiet
Maintenance
Python
Language
Apache-2.0
License
6mo ago
Last commit
8mo ago
Created
20h ago
Added

Repo: RKiding/Awesome-finance-skills

Other skills on awesome-finance-skills.