stock-query

Retrieve A-share stock lists, market data, and financial reports via akshare.

Updated Jan 1, 2025
One-click install
npx skills add https://github.com/darkinglight/stock --skill stock-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stock-query
Source: https://github.com/darkinglight/stock/tree/main/.trae/skills/stock-query
Command: npx skills add https://github.com/darkinglight/stock --skill stock-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive A-share stock information, including lists, historical and real-time market data, financial reports, and more, to assist users in querying, obtaining, and analyzing stock data.

Core Features & Use Cases

  • Stock List Retrieval: Get lists of A-share stocks with their codes and names.
  • Market Data: Access historical and real-time stock prices.
  • Financial Reports: Retrieve annual/quarterly reports, earnings forecasts, and financial statements.
  • Financial Indicators: Obtain key financial metrics like EPS, BPS, and ROE.
  • Use Case: A user wants to know the historical daily closing prices for stock code '600519' for the last quarter.

Quick Start

Query the historical daily data for stock code 600519 from 20240101 to 20240331 with no adjustments.

Frequently Asked Questions about stock-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve historical A-share stock market data for a specific date range?

Retrieve historical A-share stock market data by specifying the stock code and desired start and end dates, such as querying daily data for code 600519 from 20240101 to 20240331 with no price adjustments.

Can I get real-time stock prices and financial reports for A-shares?

Yes, you can access real-time stock prices and comprehensive financial reports for A-shares, including annual and quarterly statements, alongside key financial indicators like EPS, BPS, and ROE.

Do I need the akshare library to query A-share stock information?

Yes, fetching A-share stock lists, market data, and financial indicators requires the akshare Python library to pull data from various financial sources.

How do I get a list of A-share stocks with their names and codes?

Get lists of A-share stocks by retrieving their trading codes and associated names directly, allowing you to identify target equities for subsequent market data or financial report queries.

What financial indicators can I obtain for A-share stocks?

You can obtain key financial metrics for A-share stocks, including Earnings Per Share (EPS), Book Value Per Share (BPS), and Return on Equity (ROE) for investment analysis.

Does this tool support retrieving earnings forecasts for A-share stocks?

Yes, alongside historical and real-time market data, it supports retrieving earnings forecasts and financial statements to facilitate comprehensive stock data analysis and research.