Loading...
Loading...
Compare original and translation side by side
EASTMONEY_APIKEYecho $EASTMONEY_APIKEY⚠️ 安全注意事项
- 外部请求: 本 Skill 会将用户的查询关键词(Keyword)发送至东方财富官方 API 接口 (
) 进行解析与检索。mkapi2.dfcfs.com- 数据用途: 提交的数据仅用于资讯搜索,不包含个人隐私信息。
- 凭据保护: API Key 仅通过环境变量
在服务端或受信任的运行环境中使用,不会在前端明文暴露。EASTMONEY_APIKEY
curl -X POST --location 'https://mkapi2.dfcfs.com/finskillshub/api/claw/news-search' \
--header 'Content-Type: application/json' \
--header "apikey: $EASTMONEY_APIKEY" \
--data '{"query":"用户的查询内容"}'EASTMONEY_APIKEYecho $EASTMONEY_APIKEY⚠️ Security Notes
- External Requests: This Skill will send the user's query keywords (Keyword) to the official Eastmoney API interface (
) for parsing and retrieval.mkapi2.dfcfs.com- Data Usage: The submitted data is only used for information search and does not contain personal privacy information.
- Credential Protection: The API Key is only used in the server or trusted runtime environment through the environment variable
, and will not be exposed in plain text on the front end.EASTMONEY_APIKEY
curl -X POST --location 'https://mkapi2.dfcfs.com/finskillshub/api/claw/news-search' \
--header 'Content-Type: application/json' \
--header "apikey: $EASTMONEY_APIKEY" \
--data '{"query":"User query content"}'| 字段路径 | 简短释义 |
|---|---|
| 信息标题,高度概括核心内容 |
| 关联证券列表,含代码、名称、类型等 |
| 证券代码(如 002475) |
| 证券名称(如立讯精密) |
| 证券类型(如股票 / 债券) |
| 信息核心正文 / 结构化数据块,承载具体业务数据 |
| Field Path | Brief Explanation |
|---|---|
| Information title, highly summarizing the core content |
| List of related securities, including code, name, type, etc. |
| Securities code (e.g., 002475) |
| Securities name (e.g., Luxshare Precision) |
| Securities type (e.g., stock / bond) |
| Core text of information / structured data block, carrying specific business data |
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/news-search"
headers = {
"Content-Type": "application/json",
"apikey": api_key
}
data = {
"query": "立讯精密的资讯"
}
response = requests.post(url, headers=headers, json=data)
response.raise_for_status()
result = response.json()
print(result)import os
import requests
api_key = os.getenv("EASTMONEY_APIKEY")
if not api_key:
raise ValueError("Please set the EASTMONEY_APIKEY environment variable first")
url = "https://mkapi2.dfcfs.com/finskillshub/api/claw/news-search"
headers = {
"Content-Type": "application/json",
"apikey": api_key
}
data = {
"query": "Information on Luxshare Precision"
}
response = requests.post(url, headers=headers, json=data)
response.raise_for_status()
result = response.json()
print(result)