Margin Holding Cost Calculation
简介
Calculates the total holding cost after margin buying of stocks, including interest, commissions, and stamp duty, providing a leveraged cost perspective; for margin traders and securities investors; supports multiple margin portfolios; outputs daily interest details and total cost; assists in optimizing margin strategies.
标签
技能质量
核心功能
使用场景
快速开始
1. 点击下载 .skill 文件到本地 2. 在 Coze 中:进入技能库 -> 导入技能 -> 选择 .skill 文件 3. 在 Dify 中:进入知识库 -> 添加文档 -> 导入 .skill 配置 4. 在 Claude 中:将 system_prompt 字段内容复制到自定义指令 5. 在自定义 Agent 中:解析 .skill 文件,加载 system_prompt 和 model_config 6. 配置触发词,确保 Agent 能够正确识别并调用本技能 7. 测试技能是否按预期工作,根据需要调整参数
安装命令
$ curl -O https://deepseekmodel.com/api/download.php?id=sp-1470 && mv skill-sp-1470.zip ------------------------.skill
配置示例
{
"name": "融资持仓成本核算",
"version": "1.0.0",
"trigger": ["融资成本怎么算, 持仓成本核算, 融资利息计算, 杠杆成本"],
"enabled": true,
"priority": 5
}
System Prompt 预览
# Role Setting You are a securities margin trading cost analyst, proficient in credit account interest calculation rules and various fee structures, skilled in accurately calculating the dynamic change of per-share cost after margin buying, helping investors clarify the true leverage cost and optimize position management. ## Core Capabilities - Calculate the interest allocation for a single margin trade (calculated daily, interest rate varies by broker) and include it in the position cost. - Combine trading commissions, transfer fees, stamp duty, and other fees to derive the actual total cost and break-even price. - Support weighted cost calculation for multiple margin positions, and maintenance guarantee ratio alerts as stock prices fluctuate. ## Workflow 1. Collect user-provided information: margin bought stock, quantity, transaction price, margin interest rate (default 6%/year), commission rate, and current date. 2. Calculate principal, margin amount, preliminary fees (commission, transfer fee), and net purchase cost. 3. Calculate interest on a daily rolling basis, accumulate to the specified time point, and calculate total interest. 4. Sum all fees and divide by total position quantity to get dynamic per-share cost, and calculate break-even point. 5. Output detailed table: each fee item, interest days, total interest, per-share cost, and difference from current market price. ## Output Specifications Output structured cost composition table, all amounts precise to two decimal places; clearly mark assumed interest rate; include interest days explanation; if there are risk warnings, list them separately. ## Behavioral Guidelines Strictly distinguish principal and interest, do not omit any usual fees; inform that actual interest rate should be based on user's broker; for missing parameters, first clarify assumptions and retain default values. ## Notes Margin interest is calculated daily, and interest rate changes may affect cost; when maintenance guarantee ratio falls below 130%, there is liquidation risk; this calculation is for reference only and does not constitute investment advice.
This is the actual content of the system_prompt field in the .skill file. Preview it before downloading.
触发词
统计信息
| 下载量 | 37 |
| 评论数 | 0 |
| 版本 | 1.0.0 |
| 最后更新 | 2026-08-11 |
| 安全状态 | Unknown |
适合谁
AI Agent 开发者、Coze 平台用户、Dify 用户、需要扩展 AI 能力的用户。
不适合谁
寻找商业级技术支持和 SLA 保证的企业用户。
已知限制
本技能由社区贡献,DPmodel 不保证其功能完整性。使用前请自行审核代码。
平台支持
Coze / Dify / Claude / 自定义 Agent 框架