소스 정보
- 저장소
- cyhzzz/financial-services-plugins-ficc
- 최근 소스 활동
- 2026년 3월 1일 10:05
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/cyhzzz/financial-services-plugins-ficc --skill client-solutions명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | client-solutions |
| description | 客户解决方案插件 - 套保方案设计、结构性产品定价、客户风险分析 |
| dependency | {"python":["pandas>=2.0.0","numpy>=1.24.0"]} |
客户解决方案插件是FICC对客插件层的重要组成部分,专注于为企业客户提供定制化的风险管理解决方案,包括套期保值方案设计、结构性产品定价、客户风险分析等服务。
class HedgeSolutionDesigner:
"""套保方案设计器"""
def analyze_exposure(self, client_data):
"""
分析客户风险敞口
识别:
- 交易敞口(应收应付外汇)
- 折算敞口(境外资产负债)
- 经济敞口(竞争力影响)
"""
pass
def design_hedge_strategy(self, exposure, constraints):
"""
设计套保策略
考虑因素:
- 对冲比例(100% / 部分对冲 / 区间对冲)
- 对冲工具(远期、期权、互换、结构性产品)
- 对冲期限(匹配法/滚动法/择期法)
- 会计处理(套保会计适用性)
"""
pass
def optimize_hedge_ratio(self, exposure, market_data, constraints):
"""
优化对冲比例
目标函数:
- 最小化对冲成本
- 最小化剩余风险
- 最大化风险调整收益
"""
pass
def simulate_hedge_outcome(self, hedge_strategy, scenarios):
"""
模拟套保效果
在不同市场情景下:
- 未套保损益
- 套保工具损益
- 净损益
- 对冲有效性
"""
pass
class StructuredProductPricer:
"""结构性产品定价器"""
def price_fx_accumulator(self, structure_params, market_data):
"""
定价累计期权(Accumulator)
结构:
- 敲出障碍
- 每日观察
- 双倍买入/卖出
"""
pass
def price_fx_forward_extra(self, structure_params, market_data):
"""
定价远期加成(Forward Extra)
结构:
- 优于市场远期汇率
- 敲出/敲入条款
"""
pass
def price_fx_participatory_forward(self, structure_params, market_data):
"""
定价参与式远期(Participatory Forward)
结构:
- 部分参与上行收益
- 保护下限
"""
pass
def price_ir_structured_swap(self, structure_params, curves):
"""
定价结构性利率互换
结构:
- 封顶/保底
- 雪球结构
- 可赎回/可回售
"""
pass
def price_fx_target_redemption(self, structure_params, market_data):
"""
定价目标赎回远期(TARF)
结构:
- 累计收益目标
- 自动终止条款
"""
pass
def calculate_structured_risk(self, structured_product, market_data):
"""
计算结构性产品风险
包括:
- 希腊字母敏感性
- 情景分析
- 最坏情景损失
"""
pass
class ClientRiskAnalyzer:
"""客户风险分析器"""
def assess_transaction_risk(self, client_transactions):
"""
评估交易风险
分析:
- 汇率风险敞口
- 利率风险敞口
- 交易对手信用风险
"""
pass
def assess_translation_risk(self, foreign_operations):
"""
评估折算风险
分析境外经营实体的:
- 资产折算风险
- 负债折算风险
- 权益折算风险
"""
pass
def assess_economic_risk(self, business_model, market_data):
"""
评估经济风险
分析汇率变动对企业竞争力的长期影响:
- 出口竞争力
- 进口成本
- 市场份额
"""
pass
def generate_risk_report(self, client_id, analysis_results):
"""
生成客户风险报告
包括:
- 风险敞口汇总
- 风险量化分析
- 套保建议
- 压力测试结果
"""
pass
def monitor_client_exposure(self, client_id, limits):
"""
监控客户敞口
实时监控:
- 敞口限额使用情况
- 预警阈值触发
- 集中度风险
"""
pass
# 客户解决方案插件使用业务插件示例
from business_plugins.fx_desk import FXDeskPlugin
from business_plugins.fixed_income import FixedIncomePlugin
from core_plugins.risk_management import RiskManager
class ClientSolutionsPlugin:
def __init__(self):
self.fx_plugin = FXDeskPlugin()
self.fixed_income_plugin = FixedIncomePlugin()
self.risk_manager = RiskManager()
self.hedge_designer = HedgeSolutionDesigner()
self.product_pricer = StructuredProductPricer()
self.risk_analyzer = ClientRiskAnalyzer()
def design_comprehensive_hedge(self, client_profile, exposures, constraints):
"""设计综合套保方案"""
# 1. 分析各类风险敞口
fx_exposure = exposures.get('fx', [])
ir_exposure = exposures.get('interest_rate', [])
commodity_exposure = exposures.get('commodity', [])
# 2. 设计外汇套保方案
fx_hedge_strategy = None
if fx_exposure:
fx_hedge_strategy = self.hedge_designer.design_hedge_strategy(
exposure=fx_exposure,
constraints=constraints
)
# 3. 设计利率套保方案
ir_hedge_strategy = None
if ir_exposure:
ir_hedge_strategy = self.fixed_income_plugin.design_hedge_strategy(
exposure=ir_exposure,
constraints=constraints
)
# 4. 推荐结构性产品
structured_products = []
constraints.get():
client_profile.risk_appetite == :
structured_products.append({
: ,
: ,
:
})
risk_assessment = .risk_analyzer.assess_transaction_risk(
client_transactions=exposures
)
{
: client_profile.client_id,
: fx_hedge_strategy,
: ir_hedge_strategy,
: structured_products,
: risk_assessment,
: ._create_implementation_plan(
fx_hedge_strategy, ir_hedge_strategy
)
}