serennity007/awesome-stock-quant-skills/qmt-bridge-credit-margin
Claude Code and agent skill by serennity007/awesome-stock-quant-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
通过 QMT Bridge 查询融资融券账户:担保品、可用保证金、信用相关交易端点。 在用户提到两融、融资融券、保证金、信用账户时使用。按需启用;写操作须确认。
Install
npx vskill@latest install serennity007/awesome-stock-quant-skills/qmt-bridge-credit-marginSKILL.md
The same SKILL.md was published earlier as serennity007/awesome-stock-quant-skills/qmt-bridge-credit-margin.
QMT Trading Skill · 两融信用
实现状态:✅credit_snapshot.py、credit_order.py可用(需两融账户)
目标
信用账户专用查询与规程,与现货 trading skill 隔离,避免误操作。
脚本
| 脚本 | 作用 | |
|---|---|---|
scripts/credit_snapshot.py | 信用资产/负债摘要;持仓按「总=融资+担保品」拆分(对齐 QMT 内置 get_unclosed_compacts + position) | |
scripts/credit_order.py | 信用下单:融资买入 / 融券卖出 / 买券还券 / 卖券还款;默认预览,--execute --confirm 才实盘 |
主要 API
| 前缀 | 说明 | |
|---|---|---|
/api/credit/* | 融资融券相关(见 REST API) | |
/api/trading/* | 部分信用下单可能共用,须区分账户类型 |
规程
- 确认服务端已开通信用、账户 ID 正确
- 只读快照优先
- 开仓/平仓类写操作:单独确认,不与其他 skill 混用
信用下单
| 参数 | order_type | 含义 | |
|---|---|---|---|
--finance-buy | 27 | 融资买入 | |
--short-sell | 28 | 融券卖出 | |
--buy-repay | 29 | 买券还券 | |
--sell-repay | 31 | 卖券还款 |
担保品普通买卖请用 trading skill 的 place_order.py(/api/trading/order + 信用账户)。
安全
- 杠杆风险;默认实盘
- 无信用账户则跳过本 skill
信用持仓拆分
QMT 内置脚本逻辑(compact_type=48 为融资买入)在 Bridge 中等价为:
| QMT 内置 | Bridge / Skill | |
|---|---|---|
get_unclosed_compacts(account, 'CREDIT') | query_stk_compacts → /api/credit/debt | |
get_trade_detail_data(..., 'position') | query_credit_positions → /api/credit/positions | |
| 担保品 = 总持仓 − 融资量 | /api/credit/positions/breakdown 或 credit_positions_util |
账户默认取 .env 中 QMT_BRIDGE_CREDIT_ACCOUNT_ID(不受 QMT_BRIDGE_DEFAULT_ACCOUNT 影响);也可显式传 --account-id。
参考
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/atorber__qmt-trading-skill/skills/qmt-bridge-credit-margin/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/serennity007/awesome-stock-quant-skills/qmt-bridge-credit-margin)