dtsbc-margin-ratio-query

When a user inputs "Datong + stock name/stock code," automatically call the Datong Securities official API to retrieve that stock's margin financing ratio, short‑selling margin ratio, and collateral conversion rate.

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 "dtsbc-margin-ratio-query" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7c453a196ab877545852e9fad276317d9d9ffc4746f3c257460474f1b0dbff89. 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

When a user inputs "Datong + stock name/stock code," automatically call the Datong Securities official API to retrieve that stock's margin financing ratio, short‑selling margin ratio, and collateral conversion rate.

0 Downloads

Introduction source: third_party · user_c1c89a50 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "dtsbc-margin-ratio-query"
description: "当用户输入\"大同 + 股票名称/股票代码\"时,自动调用大同证券官方接口,查询该股票对应的融资保证金比例、融券保证金比例和担保折算率。"

大同证券两融保证金及担保折算率查询工具

触发条件

当且仅当用户输入的指令符合「大同 股票名称」或「大同 股票代码」格式时触发。 示例触发指令:

  • 大同 贵州茅台
  • 大同 600519
  • 大同 同花顺

核心执行步骤

严格按照以下顺序执行,不得跳过、颠倒步骤:

  1. 提取股票关键词 从用户输入中提取「大同」之后的全部文本,去除首尾空格,作为待查询关键词(支持股票名称或 6 位股票代码)。

  2. 判断入参类型

    • 若关键词为纯 6 位数字 → 作为 sec_code 传入,sec_name 留空。
    • 否则 → 作为 sec_name 传入,sec_code 留空。 (接口对名称做包含匹配,建议用较完整的名称或代码以提高命中率。)
  3. 查询融资/融券保证金比例 向接口发起 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
    • 数据处理:响应为 JSON,目标记录在 results[0].data[0]:
      • rzbzjbl → 融资保证金比例(小数,1.00 = 100%)
      • rqbzjbl → 融券保证金比例(小数)
      • rzzt / rqzt → 融资/融券状态(如 正常 / 暂停)
      • 折算:比例(%) = 字段值 × 100。
  4. 查询担保折算率 同一接口地址,改 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。
  5. 结果格式化输出 严格按照下方「输出规范」返回,不得添加无关内容,不得引用接口以外的数据源。

输出规范

正常查询结果输出模板

## 大同证券两融查询结果:{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

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value72/100

Highlights

  • 提供大同证券官方两融保证金比例和担保折算率查询,满足特定用户群体的专业需求
  • 功能定位清晰,解决融资融券用户的实际信息获取痛点
Trigger Precision90/100

Highlights

  • 触发条件定义清晰,示例完整,边界明确,有效降低误触风险
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档结构良好但未显式设置 When to Use 章节,虽触发条件已说明但不符合最佳规范

    Recommendation: 建议在 Phase 前增加 When to Use 章节,明确说明适用场景和使用时机

Highlights

  • 执行步骤划分清晰,有明确的出口条件和输出模板
  • frontmatter 完整,文档结构整体规范
Execution Reliability65/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    文档中提及 references/api.md 文件但未传入,影响用户获取完整字段说明

    Recommendation: 请补充 references/api.md 文件或移除相关引用说明

Highlights

  • 接口来源明确,参数定义准确,覆盖主要业务异常场景
  • 提供了详细的错误处理说明和比例换算规则
Evidence Verifiability (mean of the first four)76/100

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

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.