Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
meission avatar

Eastmoney Financial Data

  • 747 installs
  • 15 repo stars
  • Updated March 19, 2026
  • meission/eastmoney

eastmoney_financial_data is an agent skill integrating Eastmoney's financial database API for natural-language queries of Chinese stocks, funds, indices, and corporate data for developers avoiding stale LLM financial ans

About

eastmoney_financial_data is an agent skill built on Eastmoney's authoritative market database, enabling natural-language queries that return JSON for Chinese stocks, sectors, indices, funds, bonds, valuations, capital flows, financial statements, executive profiles, and corporate relationships. The skill requires an EASTMONEY_APIKEY obtained from the Eastmoney Skills marketplace before any query runs. Developers reach for eastmoney_financial_data when building agent workflows, research bots, or internal tools that need current A-share and fund data instead of outdated model training knowledge. Queries cover real-time quotes, main-force capital flow, valuation metrics, listed company fundamentals, and business relationship graphs through text input interfaces.

  • Natural-language queries for real-time market data, fund flows, valuations, and financial statements
  • Covers stocks, sectors, indices, funds, bonds, corporate fundamentals, executive info, and ownership relationships
  • Official data feed from East Money (东方财富) via secure API key
  • Returns structured JSON ready for agent reasoning or reporting
  • Prevents hallucinated or outdated financial answers

Eastmoney Financial Data by the numbers

  • 747 all-time installs (skills.sh)
  • +14 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,377 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/meission/eastmoney --skill eastmoney_financial_data

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs747
repo stars15
Security audit2 / 3 scanners passed
Last updatedMarch 19, 2026
Repositorymeission/eastmoney

How do you query live Chinese stock data in agents?

Let their coding agent retrieve accurate, up-to-date Chinese stock, fund, industry, and corporate financial data via natural language instead of relying on stale

Who is it for?

Developers building Chinese-market financial agents or dashboards who need authoritative Eastmoney API data instead of stale LLM knowledge.

Skip if: US-only equity workflows or teams without Eastmoney API marketplace access and an EASTMONEY_APIKEY credential.

When should I use this skill?

A developer asks for Chinese stock quotes, A-share fundamentals, fund data, sector flows, or Eastmoney financial API integration in an agent.

What you get

JSON financial data responses covering quotes, valuations, fundamentals, capital flows, and corporate relationship records.

  • JSON financial query responses

By the numbers

  • Covers stocks, funds, bonds, indices, sectors, and corporate relationship data categories
  • Requires EASTMONEY_APIKEY credential from Eastmoney Skills marketplace

Files

SKILL.mdMarkdownGitHub ↗

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

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

使用方式

1. 首先检查环境变量EASTMONEY_APIKEY是否存在:

   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请求调用接口:

   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字符串证券完整中文名(如东方财富)

示例

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

How it compares

Pick eastmoney_financial_data over Western-market FMP skills when authoritative Chinese A-share, fund, and Eastmoney-sourced data is required.

FAQ

What API key does eastmoney_financial_data require?

eastmoney_financial_data requires the EASTMONEY_APIKEY environment variable, obtained from the Eastmoney Skills marketplace. The agent checks for the key before running any financial data query.

What data types can eastmoney_financial_data query?

eastmoney_financial_data returns JSON for stock and index quotes, sector valuations, fund and bond data, financial statements, executive information, capital flows, and corporate relationship records.

Is Eastmoney Financial Data safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.