Agent Skills
› krakenfx/kraken-cli
› kraken-risk-operations
kraken-risk-operations
GitHub用于自动化交易中的操作风险控制,提供预检清单、死锁开关及批量取消命令,规范网络与认证错误处理,确保实盘交易安全。
Trigger Scenarios
执行自动化交易前需进行风险检查
需要紧急停止或取消所有订单以控制风险
查看当前持仓和挂单状态
Install
npx skills add krakenfx/kraken-cli --skill kraken-risk-operations -g -y
SKILL.md
Frontmatter
{
"name": "kraken-risk-operations",
"version": "1.0.0",
"metadata": {
"openclaw": {
"category": "finance"
},
"requires": {
"bins": [
"kraken"
]
}
},
"description": "Operational risk controls for live agent trading sessions."
}
kraken-risk-operations
Use this skill to reduce live-trading risk during automation.
Pre-Flight Checklist
- Confirm intended environment (paper vs live).
- Confirm pair, side, volume, and order type.
- Validate payload with
--validate. - Enable a dead-man switch for unattended sessions.
Live Session Safety Commands
Dead-man switch:
kraken order cancel-after 60 -o json 2>/dev/null
Mass cancel:
kraken order cancel-all -o json 2>/dev/null
kraken futures cancel-all -o json 2>/dev/null
Position visibility:
kraken open-orders -o json 2>/dev/null
kraken positions -o json 2>/dev/null
kraken futures positions -o json 2>/dev/null
Failure Handling
network: exponential backoff retryrate_limit: readsuggestionanddocs_urlfields, reduce call frequency or switch to WebSocketauth: stop and refresh credentialsvalidationorapi: stop, fix request, do not blind retry
Hard Rules
- All cancel and cancel-all operations are dangerous. Require explicit human approval before executing.
- Dead-man switch (
cancel-after) is also dangerous; confirm the timeout value with the user. - Never execute mass-cancel without verifying which orders and positions are open first.
- If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with
kraken feedback.
Version History
-
aa56e59
Current 2026-08-20 04:45
新增kraken feedback命令用于反馈,MCP账户设置变更需显式确认,期货WebSocket URL覆盖增加可信主机白名单限制,以及工具链和依赖升级。
- aa32814 2026-07-25 10:28


