kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Promote a validated paper strategy to live trading, gated on lab experiment evidence plus safety checks.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill kraken-paper-to-live --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill kraken-paper-to-live -a windsurf -y
name: kraken-paper-to-live
version: 1.2.0
description: "Promote a validated paper strategy to live trading, gated on lab experiment evidence plus safety checks."
metadata:
openclaw:
category: "finance"
requires:
bins: ["kraken", "jq"]
skills: ["kraken-paper-strategy", "kraken-spot-execution", "kraken-risk-operations", "kraken-lab-experiment"]Use this skill for:
Both spot and futures paper trading simulate taker fees (0.26% spot, configurable for futures). Spot paper supports optional flat-rate slippage simulation via `--slippage-rate`. Gaps remain between paper and live. Before promoting, factor in:
When presenting promotion analysis to the user, note the remaining gaps (partial fills, depth-dependent slippage, tier-based fees). If slippage was not configured in paper, explicitly state that live market orders will fill at worse prices.
**Never propose a live order without the evidence block below.** The gate rule: **at least 2 passing sessions of one frozen experiment, of which a live paper session is mandatory.** Replay sessions enter the evidence only with their lookahead caveat attached — replay cannot enforce lookahead (the agent can read the source tape), so replay screens and live confirms; two replay passes must never promote on their own.
**Start with the CLI's own checklist** — `kraken workspace promote` grades the whole gate mechanically. Missing evidence returns the checklist in the refusal envelope; a passing checklist requires explicit confirmation before the workspace changes mode:
kraken workspace promote <workspace> -o json 2>/dev/null | jq '.checklist' # .criteria[]: one row per gate criterion, satisfied true/false + detail # .experiments[]: per-experiment passing_sessions / passing_live_sessions # .manual_trades_in_windows: disclosed manual interference # .blockers[]: active sessions or paper orders that must be resolved first
After promotion, orders use the normal configured Kraken credentials and the venue's own fills are reconciled back into the workspace ledger by txid, so its P&L is real. The workspace is an allocation of the account, not a Kraken subaccount: the CLI enforces the allocation, Kraken does not, and anything using the same API key can spend allocated funds. Expect two pre-venue refusals, both `validation` envelopes:
ledger holds free of resting orders is refused. Route on the envelope's typed fields, never the message: `refusal: "allocation_budget"` with `available` and `required` (decimal strings), `funding` (the asset code the order spends — a pair leg, not necessarily the allocation currency), and `reconciled` (false means `available` may be stale). Reduce the size or cancel resting orders; this is the workspace's ledger, not the account balance.
plus the full `backing` object. An over-allocated workspace stops spending the allocated asset until funds return to the account; an unverified one (balance unreadable) stops spending until credentials and connectivity are restored.
Size orders before placing them: reconciling live workspace commands (orders, `balance`, `open-orders`, `trades-history`, `workspace status`) stamp `.backing.spendable` — the allocation-asset ledger balance free of resting orders. For orders that spend the allocation asset this is the figure the budget gate checks `required` against; an order on a pair carrying the allocation on neither leg is gated in its own funding leg instead (read that asset from `balance`).
The order that pays the allocated asset back in — closing a position — passes both refusals, so never tell a user they must abandon the workspace to exit a trade.
Present that checklist verbatim. Then, for the per-session detail behind it, build the evidence block from `kraken lab compare` — reproduced cold from disk, seals verified via `kraken lab show`, no numbers of your own:
kraken lab show <exp> -o json 2>/dev/null # seal must verify
kraken lab compare <exp> -o json 2>/dev/null | jq '{
experiment, frozen, pass_count, total,
sessions: [.sessions[] | {session,
verdict: (if .error != null then "error" else .verdict.pass end),
source: (.source.kind // "unknown"),
caveats}],
live_run_passed: ([.sessions[] | select((.verdict.pass // false) and .source.kind == "live")] | length > 0)
}'The evidence block you present for sign-off:
errored session — errored sessions carry no scorecard), verdict (`true`, `false`, or `"error"` — a mechanical FAIL is not an error), caveats verbatim,
Trade on Kraken from your terminal, or let your AI agent trade for you. One install covers crypto, tokenized U.S. stocks and ETFs (for non-U.S. customers), forex, and futures. Every command can answer in JSON.
Price alerts, threshold monitoring, and notification triggers for agents.
Progress from manual trading to full agent autonomy with controlled risk at each level.
Capture the spot-futures price spread with delta-neutral basis trades.
Dollar cost averaging with scheduled buys and performance tracking.
Discover staking strategies, allocate funds, and track earn positions.
Handle order failures, network errors, and duplicate submissions safely.
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…