eastmoney_financial_data

本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。

1,864 stars

Best use case

eastmoney_financial_data is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。

Teams using eastmoney_financial_data should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/eastmoney-financial-data-1-0-2/SKILL.md --create-dirs "https://raw.githubusercontent.com/LeoYeAI/openclaw-master-skills/main/skills/eastmoney-financial-data-1-0-2/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/eastmoney-financial-data-1-0-2/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How eastmoney_financial_data Compares

Feature / Agenteastmoney_financial_dataStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 东方财富金融数据skill (eastmoney_financial_data)

通过**文本输入**查询金融相关数据(股票、板块、指数等),接口返回 JSON格式内容。

## 使用方式

1. 首先检查环境变量`EASTMONEY_APIKEY`是否存在:
   ```bash
   echo $EASTMONEY_APIKEY
   ```
   如果不存在,提示用户在东方财富Skills页面(https://marketing.dfcfs.com/views/finskillshub/indexuNdYscEA?appfenxiang=1)获取apikey并设置到环境变量。

   > ⚠️ **安全注意事项**
   >
   > - **外部请求**: 本 Skill 会将您的查询文本发送至东方财富官方 API 域名 ( `mkapi2.dfcfs.com` ) 以获取金融数据。
   > - **凭据保护**: API Key 仅通过环境变量 `EASTMONEY_APIKEY` 在服务端或受信任的运行环境中使用,不会在前端明文暴露。

2. 使用POST请求调用接口:
   ```bash
   curl -X POST --location 'https://mkapi2.dfcfs.com/finskillshub/api/claw/query' \
   --header 'Content-Type: application/json' \
   --header "apikey: $EASTMONEY_APIKEY" \
   --data '{"toolQuery":"用户的查询内容"}'
   ```

## 适用场景

当用户查询以下类型的内容时使用本skill:
- **行情类数据**:股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等数据
- **财务类数据**:上市公司与非上市公司的基本信息、财务指标、高管信息、主营业务、股东结构、融资情况等数据
- **关系与经营类数据**:股票、非上市公司、股东及高管之间的关联关系数据,以及企业经营相关数据

## 数据限制说明

请谨慎查询大数据范围的数据,如某只股票3年的每日最新价,可能会导致返回内容过多,模型上下文爆炸问题。

## 返回结构说明

### 一级核心路径:`data`

|字段路径|类型|核心释义|
|----|----|----|
|`data.questionId`|字符串|查数请求唯一标识 ID,关联单次查询任务|
|`data.dataTableDTOList`|数组|【核心】标准化后的证券指标数据列表,每个元素对应**1 个证券 + 1 个指标**的完整数据|
|`data.rawDataTableDTOList`|数组|原始未加工的证券指标数据列表,与标准化列表结构完全一致,供原始数据调用|
|`data.condition`|对象|本次查数的查询条件,记录查询关键词、时间范围等|
|`data.entityTagDTOList`|数组|本次查询关联的**证券主体汇总信息**,去重后展示所有涉事证券的基础属性|

### 二级核心路径:`data.dataTableDTOList[]`(单指标对象,表格核心)

数组内每个对象为**独立的指标数据单元**,包含**证券信息 + 表格数据 + 指标元信息 + 证券标签**四大部分。

#### 2.1 证券基础信息

|字段路径|类型|核心释义|
|----|----|----|
|`dataTableDTOList[].code`|字符串|证券完整代码(含市场标识,如 300059.SZ)|
|`dataTableDTOList[].entityName`|字符串|证券全称(含代码,如东方财富 (300059.SZ))|
|`dataTableDTOList[].title`|字符串|本指标数据的标题,概括查询结果(如东方财富最新价)|

#### 2.2 表格数据核心(渲染用)

|字段路径|类型|核心释义|表格逻辑|
|----|----|----|----|
|`dataTableDTOList[].table`|对象|【核心】标准化表格数据,**键 = 指标编码,值 = 指标数值数组**;`headName`为时间 / 维度列值|键为**指标列**,`headName`为**时间列**,值为交叉单元格的**指标数值**|
|`dataTableDTOList[].rawTable`|对象|原始表格数据,与`table`结构一致,未做数据标准化处理|同`table`,为原始数值,无格式 / 单位修正|
|`dataTableDTOList[].nameMap`|对象|【核心】列名映射关系,将**指标编码 / 内置字段**转为**业务中文名**(如 f2→最新价)|解决表格列名 “编码转中文” 的问题,`headNameSub`为时间列的固定名称|
|`dataTableDTOList[].indicatorOrder`|数组|指标列的展示排序,元素为指标编码(如 [f2])|控制表格中多个指标列的前后顺序,单指标时为单元素数组|

#### 2.3 指标元信息(属性 / 规则)

|字段路径|类型|核心释义|
|----|----|----|
|`dataTableDTOList[].dataType`|字符串|数据来源类型(如行情数据 / 数据浏览器)|
|`dataTableDTOList[].dataTypeEnum`|字符串|数据类型枚举值(HQ = 行情,DATA_BROWSER = 数据浏览器)|
|`dataTableDTOList[].field`|对象|【核心】当前指标的详细元信息,含指标编码、名称、查询时间、粒度等|

#### 2.4 证券标签信息(主体属性)

|字段路径|类型|核心释义|
|----|----|----|
|`dataTableDTOList[].entityTagDTO`|对象|本指标关联证券的详细主体属性(如证券类型、市场、简称等)|

### 三级核心路径

#### 3.1 指标元信息:`dataTableDTOList[].field`

|字段路径|类型|核心释义|
|----|----|----|
|`field.returnCode`|字符串|指标唯一编码|
|`field.returnName`|字符串|指标业务中文名(如最新价 / 收盘价)|
|`field.startDate/endDate`|字符串|本次查询的时间范围(开始 / 结束)|
|`field.dateGranularity`|字符串|数据粒度(DAY = 日度,MIN = 分钟等)|

#### 3.2 证券主体属性:`dataTableDTOList[].entityTagDTO`

|字段路径|类型|核心释义|
|----|----|----|
|`entityTagDTO.secuCode`|字符串|证券纯代码(无市场标识,如 300059)|
|`entityTagDTO.marketChar`|字符串|市场标识(.SZ = 深交所,.SH = 上交所)|
|`entityTagDTO.entityTypeName`|字符串|证券类型(如 A 股 / 港股 / 债券)|
|`entityTagDTO.fullName`|字符串|证券完整中文名(如东方财富)|

## 示例

```python
import os
import requests

api_key = os.getenv("EASTMONEY_APIKEY")
if not api_key:
    raise ValueError("请先设置EASTMONEY_APIKEY环境变量")

url = "https://mkapi2.dfcfs.com/finskillshub/api/claw/query"
headers = {
    "Content-Type": "application/json",
    "apikey": api_key
}
data = {
    "toolQuery": "东方财富最新价"
}

response = requests.post(url, headers=headers, json=data)
response.raise_for_status()
result = response.json()
print(result)
```

## 异常处理
- 如果数据结果为空,提示用户到东方财富妙想AI查询
- 如果请求失败,检查API Key是否正确,网络是否正常

Related Skills

tech-data-playbook

1864
from LeoYeAI/openclaw-master-skills

World-Class Technology & Data Playbook. Use for: software development best practices, IT infrastructure design, cybersecurity strategy, data analytics, business intelligence, automation & DevOps, cloud computing architecture, AI/ML adoption, technical architecture decisions, digital transformation strategy, platform engineering, CI/CD pipelines, zero-trust security, data governance, FinOps, edge computing, observability, MLOps, and technology leadership. Trigger when discussing ANY technology strategy, engineering practice, data platform, security posture, cloud architecture, AI implementation, or digital transformation topic. If in doubt, use this skill.

senior-data-scientist

1864
from LeoYeAI/openclaw-master-skills

World-class senior data scientist skill specialising in statistical modeling, experiment design, causal inference, and predictive analytics. Covers A/B testing (sample sizing, two-proportion z-tests, Bonferroni correction), difference-in-differences, feature engineering pipelines (Scikit-learn, XGBoost), cross-validated model evaluation (AUC-ROC, AUC-PR, SHAP), and MLflow experiment tracking — using Python (NumPy, Pandas, Scikit-learn), R, and SQL. Use when designing or analysing controlled experiments, building and evaluating classification or regression models, performing causal analysis on observational data, engineering features for structured tabular datasets, or translating statistical findings into data-driven business decisions.

senior-data-engineer

1864
from LeoYeAI/openclaw-master-skills

Data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, implementing data governance, or troubleshooting data issues.

native-data-fetching

1864
from LeoYeAI/openclaw-master-skills

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching, offline support, and Expo Router data loaders (useLoaderData).

eastmoney_financial_search

1864
from LeoYeAI/openclaw-master-skills

本skill基于东方财富妙想搜索能力,基于金融场景进行信源智能筛选,用于获取涉及时效性信息或特定事件信息的任务,包括新闻、公告、研报、政策、交易规则、具体事件、各种影响分析、以及需要检索外部数据的非常识信息等。避免AI在搜索金融场景信息时,参考到非权威、及过时的信息。

database-schema-designer

1864
from LeoYeAI/openclaw-master-skills

Database Schema Designer

database-designer

1864
from LeoYeAI/openclaw-master-skills

Database Designer - POWERFUL Tier Skill

database-admin

1864
from LeoYeAI/openclaw-master-skills

Comprehensive database administration, schema management, data operations, and optimization. Use when Codex needs to: (1) Create or modify database tables with proper indexing, (2) Perform bulk data insertions with type safety and constraint handling, (3) Execute complex queries with JOINs, aggregations, and subqueries, (4) Optimize query performance through indexing and execution plan analysis, (5) Manage database backups, restores, and migrations, (6) Handle special data types (BIGINT, UUID, JSONB, enums), (7) Implement transactional safety with ACID compliance, or (8) Debug and resolve database errors including constraint violations, type mismatches, and foreign key issues

data-analyst

1864
from LeoYeAI/openclaw-master-skills

Data visualization, report generation, SQL queries, and spreadsheet automation. Transform your AI agent into a data-savvy analyst that turns raw data into actionable insights.

Data Analysis

1864
from LeoYeAI/openclaw-master-skills

Turn raw data into decisions with statistical rigor, proper methodology, and awareness of analytical pitfalls.

financial-analyst

1864
from LeoYeAI/openclaw-master-skills

Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and forecasts. Also applicable when users mention financial modeling, cash flow analysis, company valuation, financial projections, or spreadsheet analysis.

youtube-watcher

1864
from LeoYeAI/openclaw-master-skills

Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.