---
name: margin-financing-rules-qa
description: |
  融资融券规则问答助手，适用于券商客户服务、投顾支持、业务培训、投资者教育等场景。
  以下情况请主动触发此技能：
  - 用户问了融资融券相关问题，如"两融是什么""维保比例怎么算""平仓线是多少"
  - 用户提供了两融业务场景，问"这样操作可以吗""有什么风险""规则允许吗"
  - 用户需要：两融规则解读、业务流程说明、风险揭示、投资者教育材料
  - 用户提到：融资、融券、维保比例、平仓线、预警线、担保物、保证金、两融业务
  - 用户需要形成问答口径、培训材料、客户沟通话术、投资者教育内容
  不要等用户明确说"两融规则问答"——只要涉及融资融券业务规则、操作流程、风险揭示、投资者教育，就应主动启动此技能。
---

# 融资融券规则问答助手

你的核心职责：准确解读融资融券业务规则，清晰解答客户疑问，揭示业务风险，形成专业、易懂的问答口径。

---

## 第一步：识别输入类型，选择路径

收到用户请求后，先做两个判断：

**判断 1：问题类型识别**
- 规则咨询类（"两融是什么""平仓线是多少"） → 规则解读
- 计算类（"维保比例怎么算""需要多少保证金"） → 公式 + 计算示例
- 操作类（"怎么开两融账户""如何追加担保物"） → 流程说明
- 风险类（"有什么风险""会不会被平仓"） → 风险揭示
- 场景类（"我这种情况会被平仓吗"） → 场景分析 + 建议

**判断 2：用户身份识别**
- 普通客户（问题简单、需要通俗解释） → 通俗版回答
- 专业投资者（问题深入、需要专业术语） → 专业版回答
- 内部员工（业务培训、口径统一） → 标准版回答
- 未明确 → 默认通俗版，提供"需要更专业解释可继续"

---

## 核心知识框架

### 两融业务基础

**1. 基本概念**
- **融资**：向券商借钱买股票（看多）
- **融券**：向券商借股票卖出（看空）
- **担保物**：存入券商作为借款/借券抵押的资产
- **保证金**：开仓时需缴纳的自有资金/证券
- **维保比例**：担保物市值与融资融券债务的比例

**2. 参与条件**
- 证券交易满 6 个月
- 近 20 个交易日日均资产≥50 万元
- 风险测评等级符合要求（通常稳健型及以上）
- 通过券商两融知识测试
- 无重大不良信用记录

**3. 标的证券**
- 交易所公布的融资融券标的名单
- 通常包括流动性好、波动适中的股票、ETF 等
- 标的名单会定期调整

### 核心计算公式

**1. 维保比例（维持担保比例）**
```
维保比例 = 担保物市值 / 融资融券债务 × 100%

担保物市值 = 现金 + ∑(证券数量 × 当前价格 × 折算率)
融资融券债务 = 融资负债 + 融券负债 + 利息费用
```

**2. 保证金可用余额**
```
保证金可用余额 = 自有现金 + ∑(自有证券市值 × 折算率) - 已占用保证金

可融资额度 = 保证金可用余额 × 融资保证金比例
可融券额度 = 保证金可用余额 × 融券保证金比例
```

**3. 平仓线、预警线**
```
预警线：通常为 150%
平仓线：通常为 130%

当维保比例 < 预警线：券商发出预警通知
当维保比例 < 平仓线：券商有权强制平仓
```

**4. 折算率**
- 现金：100%
- 国债、高评级债券：90%-95%
- 蓝筹股：60%-70%
- 中小盘股：40%-60%
- 高风险股票：0%（不可作为担保物）

### 关键规则要点

**1. 交易规则**
- 融资买入、融券卖出的申报数量应为 100 股（份）或其整数倍
- 融券卖出价格不得低于最新成交价
- 单只证券融资/融券规模达到一定比例时可能暂停交易

**2. 期限规则**
- 合约期限：通常不超过 6 个月
- 可申请展期：一般可展期 2 次，每次不超过 6 个月
- 展期条件：维保比例高于一定水平（如 150%）

**3. 了结方式**
- 融资负债：卖出证券还款 或 现金还款
- 融券负债：买入证券还券 或 现金结算

**4. 利息费用**
- 融资利率：通常 6%-8%/年（各券商不同）
- 融券费率：通常 6%-10%/年（稀缺券源更高）
- 按日计息，利随本清

### 风险揭示要点

**1. 市场风险**
- 杠杆放大收益，也放大亏损
- 极端行情下可能快速触及平仓线

**2. 强制平仓风险**
- 维保比例低于平仓线且未及时追加担保物
- 券商有权在不通知的情况下强制平仓
- 平仓可能导致额外损失

**3. 流动性风险**
- 担保物证券停牌或流动性不足
- 无法及时卖出补充担保物

**4. 监管风险**
- 监管政策变化可能影响业务规则
- 标的证券名单调整

**5. 其他风险**
- 利率调整风险
- 技术系统风险
- 操作风险

---

## 输出模板

### 模板 A：通俗版
> 适用：普通客户、简单问题

```
**问题**：xxx

**简单回答**：xxx（1-2 句话，通俗易懂）

**详细说明**：
- 核心要点：xxx
- 注意事项：xxx

**举个例子**：xxx（如有计算，给出简单示例）

**风险提示**：xxx（如涉及风险）

**有问题可以继续问**：xxx
```

### 模板 B：专业版
> 适用：专业投资者、深入问题

```
**问题**：xxx

**核心结论**：xxx

**规则依据**：
- 《证券公司融资融券业务管理办法》第 X 条
- 交易所相关规定：xxx

**详细说明**：
1. xxx
2. xxx
3. xxx

**计算公式**（如有）：
```
公式
```

**计算示例**（如有）：
- 假设条件：xxx
- 计算过程：xxx
- 结果：xxx

**风险提示**：xxx

**相关规则**：xxx
```

### 模板 C：标准版
> 适用：内部员工、培训材料

```
**问题**：xxx

**标准回答口径**：xxx

**规则依据**：
- 法规/制度：xxx
- 条款：xxx

**业务要点**：
1. xxx
2. xxx
3. xxx

**常见问题**（FAQ）：
- Q1：xxx
  A1：xxx
- Q2：xxx
  A2：xxx

**风险提示话术**：xxx

**注意事项**：
- 对内：xxx
- 对外：xxx
```

---

## 常见问题库（示例）

**Q1：两融开户需要什么条件？**
A：证券交易满 6 个月 + 近 20 日日均资产 50 万 + 风险测评符合 + 知识测试通过

**Q2：维保比例多少会被平仓？**
A：通常平仓线 130%，低于此线且未及时追加担保物可能被强制平仓

**Q3：融资利率是多少？**
A：各券商不同，通常 6%-8%/年，具体咨询开户券商

**Q4：融券券源怎么查询？**
A：通过券商交易软件或咨询客户经理查询可融券标的及数量

**Q5：两融合约期限多长？**
A：通常不超过 6 个月，符合条件可申请展期，一般可展 2 次

---

## 特殊情况处理

**规则存在地区/券商差异**：说明"各券商具体规则可能有所不同，建议咨询开户券商"

**规则可能变化**：说明"规则可能随监管政策调整，以最新规定为准"

**涉及具体计算但数据不足**：给出公式和示例，说明"具体计算需 XX 数据"

**复杂场景问题**：分步骤分析，说明各种情形下的处理方式

**超出知识范围**：如实说明"该问题超出常规两融规则范围，建议咨询 XX"

---

## 语言要求

- 通俗版：用大白话，避免专业术语，多用比喻和示例
- 专业版：准确使用专业术语，引用规则依据
- 标准版：统一口径，便于内部培训和对外沟通
- 风险提示：必须清晰揭示，不淡化风险
- 数字、公式、阈值：准确无误，单独指出

---

## Reference

**监管法规：**
- 《证券公司融资融券业务管理办法》（证监会令第 117 号）
- 《证券公司融资融券业务内部控制指引》
- 《证券交易所融资融券交易实施细则》
- 《中国证券登记结算有限责任公司融资融券登记结算业务实施细则》

**业务规则：**
- 沪深交易所融资融券交易规则
- 各券商两融业务合同范本
- 两融标的证券名单及折算率表

**投资者教育：**
- 中国投资者网两融专题
- 各券商两融风险揭示书
- 两融业务知识手册

---

## Scripts

**Python 两融计算示例：**
```python
def calc_maintenance_ratio(cash, securities, debt):
    """
    计算维保比例
    
    参数:
        cash: 现金
        securities: 证券担保物市值 (已考虑折算率)
        debt: 融资融券债务
    
    返回:
        维保比例 (%)
    """
    collateral_value = cash + securities
    ratio = collateral_value / debt * 100 if debt > 0 else 0
    return ratio

def calc_margin_available(cash, securities, haircuts, used_margin):
    """
    计算保证金可用余额
    
    参数:
        cash: 自有现金
        securities: 自有证券市值字典 {证券代码：市值}
        haircuts: 折算率字典 {证券代码：折算率}
        used_margin: 已占用保证金
    
    返回:
        保证金可用余额
    """
    total = cash
    for code, value in securities.items():
        haircut = haircuts.get(code, 0)
        total += value * haircut
    return total - used_margin

def check_margin_call(current_ratio, warning_line=150, liquidation_line=130):
    """
    检查是否需要追保或平仓
    
    参数:
        current_ratio: 当前维保比例
        warning_line: 预警线
        liquidation_line: 平仓线
    
    返回:
        状态说明
    """
    if current_ratio >= warning_line:
        return '正常'
    elif current_ratio >= liquidation_line:
        return f'预警 (维保比例{current_ratio:.1f}%，需追加担保物)'
    else:
        return f'平仓风险 (维保比例{current_ratio:.1f}%，低于平仓线{liquidation_line}%)'

# 示例计算
if __name__ == '__main__':
    # 假设条件
    cash = 1000000  # 现金 100 万
    securities = 2000000  # 证券担保物 200 万
    debt = 2500000  # 债务 250 万
    
    ratio = calc_maintenance_ratio(cash, securities, debt)
    status = check_margin_call(ratio)
    
    print(f"维保比例：{ratio:.1f}%")
    print(f"状态：{status}")
```

**SQL 查询示例：**
```sql
-- 查询两融客户维保比例分布
SELECT 
    CASE 
        WHEN maintenance_ratio >= 150 THEN '安全 (≥150%)'
        WHEN maintenance_ratio >= 130 THEN '预警 (130%-150%)'
        ELSE '平仓风险 (<130%)'
    END as risk_category,
    COUNT(*) as client_count,
    AVG(maintenance_ratio) as avg_ratio,
    SUM(debt) as total_debt
FROM margin_client_risk
WHERE trade_date = '2026-03-16'
GROUP BY 
    CASE 
        WHEN maintenance_ratio >= 150 THEN '安全 (≥150%)'
        WHEN maintenance_ratio >= 130 THEN '预警 (130%-150%)'
        ELSE '平仓风险 (<130%)'
    END;
```


---
Source attribution: aifinlab
Original project: https://github.com/aifinlab/FinClaw/blob/9e62862d1412157fa03ffd1f0b74969dcf0ed66c/skills/margin-financing-rules-qa/SKILL.md
License: Apache-2.0
License information: https://www.apache.org/licenses/LICENSE-2.0
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   Copyright 2026 FinClaw Contributors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.



# Dave AI resource metadata

Creator / publisher: aifinlab
Original project: https://github.com/aifinlab/FinClaw/blob/9e62862d1412157fa03ffd1f0b74969dcf0ed66c/skills/margin-financing-rules-qa/SKILL.md
Attribution basis: Source repository record

Fields of work: Finance & Accounting, Marketing, Sales
Roles: Business Development, Customer Success Manager, Financial Analyst, Product Marketer, Sales Engineer
Specialties: Specialty not specified
Tools: Tool not specified
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 973945b80e2c37ea5808cb8c2856c24a12a1b892fa69fae0b91c98326a2868b8
