dtsbclrcs1
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dtsbclrcs1" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-50027d98c6b1c6b462167def1631b08867fab1c93e4c04ec59029590c9094c0d. Verify the upstream source and version against https://skillhub.cn/skills/user_c1c89a50/dtsbclrcs1 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Datong Securities query assistant: when the user inputs "Datong + stock name/stock code", calls Datong Securities' official API to retrieve that stock's margin ratio for margin buying, margin ratio for short selling, and collateral conversion rate.
Introduction source: third_party · user_c1c89a50 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: dtsbc-margin-ratio-query
description: "当用户输入\"大同 + 股票名称/股票代码\"时,自动调用大同证券官方接口,查询该股票对应的融资保证金比例、融券保证金比例和担保折算率。"大同证券两融保证金及担保折算率查询工具
触发条件
当且仅当用户输入的指令符合「大同 股票名称」或「大同 股票代码」格式时触发。 示例触发指令:
- 大同 贵州茅台
- 大同 600519
- 大同 同花顺
核心执行步骤
严格按照以下顺序执行,不得跳过、颠倒步骤:
-
提取股票关键词 从用户输入中提取「大同」之后的全部文本,去除首尾空格,作为待查询关键词(支持股票名称或 6 位股票代码)。
-
判断入参类型
- 若关键词为纯 6 位数字 → 作为
sec_code传入,sec_name留空。 - 否则 → 作为
sec_name传入,sec_code留空。 (接口对名称做包含匹配,建议用较完整的名称或代码以提高命中率。)
- 若关键词为纯 6 位数字 → 作为
-
查询融资/融券保证金比例 向接口发起 POST 请求:
- 接口地址:
https://www.dtsbc.com.cn/servlet/json - 请求方法:POST
- Content-Type:
application/x-www-form-urlencoded; charset=UTF-8 - Referer:
https://www.dtsbc.com.cn/main/ywzx/rzrq/gsxx/bdzqjbzjbl/index.html - 请求体(form 表单):
- funcNo:
904006 - sec_code: 步骤2结果(可空)
- sec_name: 步骤2结果(可空)
- curPage:
1 - numPerPage:
10
- funcNo:
- 数据处理:响应为 JSON,目标记录在
results[0].data[0]:rzbzjbl→ 融资保证金比例(小数,1.00 = 100%)rqbzjbl→ 融券保证金比例(小数)rzzt/rqzt→ 融资/融券状态(如 正常 / 暂停)- 折算:比例(%) = 字段值 × 100。
- 接口地址:
-
查询担保折算率 同一接口地址,改 funcNo 为
904005,Referer 改为https://www.dtsbc.com.cn/main/ywzx/rzrq/gsxx/dbzqjzsl/index.html,其余参数相同:- 目标记录
results[0].data[0]:dbzsl→ 担保折算率(小数,0.70 = 70%)db_status→ 担保状态(如 正常)gyzsl→ 国有股折算率(通常 0,可不展示)- 折算:比例(%) =
dbzsl× 100。
- 目标记录
-
结果格式化输出 严格按照下方「输出规范」返回,不得添加无关内容,不得引用接口以外的数据源。
输出规范
正常查询结果输出模板
## 大同证券两融查询结果:{stockName}({stockCode})
数据日期:{modify_date 或 xgrq}(来源:大同证券官方接口)
| 项目 | 比例 |
| --- | --- |
| 融资保证金比例 | {rzbzjbl×100}% (状态:{rzzt}) |
| 融券保证金比例 | {rqbzjbl×100}% (状态:{rqzt}) |
| 担保折算率 | {dbzsl×100}% (状态:{db_status}) |
说明:以上比例由官方接口返回的小数直接 ×100 得到。
无数据(totalRows=0 或 data 为空)输出模板
## 大同证券两融查询结果:{关键词}
未在大同证券两融标的/担保品名单中查询到「{关键词}」的记录。
可能原因:该证券非两融标的、非担保品,或名称/代码不匹配。
注意事项
- 接口比例字段为小数(1.00 = 100%),与国金证券(整数 100 = 100%)不同,输出前务必 ×100。
- 接口无需登录 Cookie,直接 POST 即可;若返回
error_no非 0,原样提示error_info。 - 更完整的字段与取值说明见
references/api.md。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供大同证券两融保证金比例及担保折算率查询,解决特定金融场景信息获取需求
Highlights
- 触发条件清晰明确,示例丰富,边界定义良好
Highlights
- 执行步骤清晰有序,输出模板完整,frontmatter规范
Areas to improve
-
边缘异常处理不足 Reported severity: Minor
未明确处理网络超时、接口返回格式异常等边缘情况
Recommendation: 建议补充网络异常、JSON解析异常等边缘情况的处理逻辑
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.dtsbc.com.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.