Loading...
Loading...
This Skill is built based on Eastmoney's authoritative database and the latest underlying market data, supporting natural language queries for market data (real-time quotes, main capital flows, valuations, etc. of stocks, industries, sectors, indices, funds, bonds), financial data (basic information of listed companies, financial indicators, executive information, main business, etc.), and relationship and operation data (associated relationships, enterprise operation data). It prevents models from answering financial data questions based on outdated knowledge and provides authoritative and timely financial data.
npx skill4agent add meission/eastmoney eastmoney_financial_dataEASTMONEY_APIKEYecho $EASTMONEY_APIKEY⚠️ Security Notes
- External Requests: This Skill will send your query text to Eastmoney's official API domain (
) to obtain financial data.mkapi2.dfcfs.com- Credential Protection: The API Key is only used on the server side or in trusted running environments via the environment variable
, and will not be exposed in plaintext on the frontend.EASTMONEY_APIKEY
curl -X POST --location 'https://mkapi2.dfcfs.com/finskillshub/api/claw/query' \
--header 'Content-Type: application/json' \
--header "apikey: $EASTMONEY_APIKEY" \
--data '{"toolQuery":"User's query content"}'data| Field Path | Type | Core Definition |
|---|---|---|
| String | Unique ID for the data query request, associated with a single query task |
| Array | 【Core】Standardized list of securities indicator data, each element corresponds to complete data of 1 security + 1 indicator |
| Array | Raw unprocessed list of securities indicator data, with exactly the same structure as the standardized list, for raw data calls |
| Object | Query conditions for this data query, recording query keywords, time range, etc. |
| Array | 【Summary of securities entities associated with this query】, displaying basic attributes of all involved securities after deduplication |
data.dataTableDTOList[]| Field Path | Type | Core Definition |
|---|---|---|
| String | Full securities code (including market identifier, e.g., 300059.SZ) |
| String | Full name of the security (including code, e.g., Eastmoney (300059.SZ)) |
| String | Title of this indicator data, summarizing the query result (e.g., Eastmoney's latest price) |
| Field Path | Type | Core Definition | Table Logic |
|---|---|---|---|
| Object | 【Core】Standardized table data, key = indicator code, value = array of indicator values; | Key is indicator column, |
| Object | Raw table data, same structure as | Same as |
| Object | 【Core】Column name mapping relationship, converting indicator codes / built-in fields to business Chinese names (e.g., f2→latest price) | Solves the problem of "code to Chinese" for table column names, |
| Array | Display order of indicator columns, elements are indicator codes (e.g., [f2]) | Controls the order of multiple indicator columns in the table, single-element array for single indicator |
| Field Path | Type | Core Definition |
|---|---|---|
| String | Data source type (e.g., market data / data browser) |
| String | Enumerated value of data type (HQ = market quotes, DATA_BROWSER = data browser) |
| Object | 【Core】Detailed meta-information of the current indicator, including indicator code, name, query time, granularity, etc. |
| Field Path | Type | Core Definition |
|---|---|---|
| Object | Detailed entity attributes of the securities associated with this indicator (e.g., securities type, market, abbreviation, etc.) |
dataTableDTOList[].field| Field Path | Type | Core Definition |
|---|---|---|
| String | Unique code of the indicator |
| String | Business Chinese name of the indicator (e.g., latest price / closing price) |
| String | Time range of this query (start / end) |
| String | Data granularity (DAY = daily, MIN = minute, etc.) |
dataTableDTOList[].entityTagDTO| Field Path | Type | Core Definition |
|---|---|---|
| String | Pure securities code (without market identifier, e.g., 300059) |
| String | Market identifier (.SZ = Shenzhen Stock Exchange, .SH = Shanghai Stock Exchange) |
| String | Securities type (e.g., A-shares / Hong Kong stocks / bonds) |
| String | Full Chinese name of the security (e.g., Eastmoney) |
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)