
by Kraken
No reviews yetDeposit up to 5x leveraged cash into Polymarket using Kraken margin trading. Fiat onramp via Kraken Ramp API. Uses Kraken REST API directly — user supplies their own API keys.
+20.0%
270d Liquidation Rate %
Skill instructions are preloaded in context when this skill is active. Do not perform filesystem searches or tool-driven exploration to rediscover them; use the guidance below directly.
Converts a cash deposit into a 5x leveraged Bitcoin position on Kraken, then withdraws borrowed USDC directly to a Polymarket wallet on Polygon. Uses Kraken Ramp API for fiat onramp — no external onramp service needed.
Cash ($200 via bank/card)
│
▼ ① Kraken Ramp API — buy USDC with fiat (payment-methods → quote → checkout)
USDC on Kraken
│
▼ ② Buy BTC on 5x margin (API: AddOrder with leverage:5)
BTC position on Kraken (5x leveraged)
│
▼ ③ Withdraw borrowed USDC to Polygon (API: Withdraw)
USDC on Polygon
│
▼ ④ Polymarket wallet funded
| Step | In | Out | | --- | --- | --- | | ① Kraken Ramp | $200 fiat | ~200 USDC on Kraken | | ② Margin Buy 5x | 200 USDC collateral | ~$1,000 BTC position | | ③ Withdraw | Borrowed ~$800 USDC | ~$800 USDC on Polygon | | ④ Funded | — | Polymarket ready |
Net position: Long ~$1,000 BTC on Kraken (5x) + ~$800 on Polymarket.
| Leverage | BTC Position | Borrowed USDC | To Polymarket | Liquidation Buffer | | --- | --- | --- | --- | --- | | 2x | $400 | ~$200 | ~$200 | ~50% drop | | 3x | $600 | ~$400 | ~$400 | ~33% drop | | 5x | $1,000 | ~$800 | ~$800 | ~20% drop |
The words exit, close, unwind, repay, and stop are immediate operator instructions. When the user issues any of these, the agent must:
Before executing any live transaction the agent must:
KRAKEN_API_KEY and KRAKEN_API_SECRET are setSystemStatus)BalanceTradeBalance/b2b/ramp/payment-methods)WithdrawMethods)All dependencies are validated at startup. If any are missing the agent prints a diagnostic and exits non-zero.
KRAKEN_API_KEY — Kraken API key with Trade and Funds permissionsKRAKEN_API_SECRET — Kraken API secret (base64 encoded)POLYMARKET_WALLET_ADDRESS — destination wallet address on PolygonSEREN_API_KEY — Seren gateway key (for RPC balance confirmation only)Default mode is dry-run. The agent queries Kraken for quotes, balances, and fee estimates without placing orders or initiating transfers.
To execute live:
python scripts/agent.py --config config.json --yes-live
The --yes-live flag is the single live gate. Without it, no orders are placed and no withdrawals are initiated.
python scripts/agent.py stop --config config.json --yes-live
This will:
When this skill is invoked, immediately run:
python scripts/agent.py --config config.json
| Endpoint | Method | Purpose |
| --- | --- | --- |
| /0/public/SystemStatus | GET | Health check |
| /0/public/Ticker | GET | BTC/USD price |
| /0/public/AssetPairs | GET | Verify margin pair availability |
| /b2b/ramp/payment-methods | GET | Available fiat payment methods |
| /b2b/ramp/quotes/prospective | GET | Get fiat-to-USDC quote |
| /b2b/ramp/checkout | GET | Execute fiat purchase |
| /0/private/Balance | POST | Account balances |
| /0/private/TradeBalance | POST | Margin status and equity |
| /0/private/AddOrder | POST | Place margin buy order (with leverage param) |
| /0/private/Withdraw | POST | Withdraw USDC to Polygon address |
| /0/private/WithdrawInfo | POST | Withdrawal fee estimate |
| /0/private/OpenPositions | POST | Check open margin positions |
| /0/private/CancelOrder | POST | Cancel pending orders |
| Variable | Required | How to Get |
| --- | --- | --- |
| KRAKEN_API_KEY | Yes | kraken.com → Settings → API → Create Key → enable Query Funds, Deposit Funds, Trade, Withdraw Funds |
| KRAKEN_API_SECRET | Yes | Shown once when creating the API key above — save it immediately |
| Variable | Required | Description |
| --- | --- | --- |
| POLYMARKET_WALLET_ADDRESS | Yes | Your Polymarket wallet address on Polygon (find at polymarket.com/wallet) |
| Variable | Required | Description |
| --- | --- | --- |
| SEREN_API_KEY | Yes | Seren API key — get from Seren Desktop or serendb.com |
| Component | Estimated Cost | | --- | --- | | Kraken Ramp fee | Varies by payment method (card ~1.5%, bank ~0%) | | Kraken trading fee | 0.16-0.26% (maker/taker) | | Kraken margin open fee | 0.01-0.05% | | Kraken withdrawal fee | ~1 USDC (Polygon) | | Total overhead | ~$1-4 on a $200 deposit |
Free
npx skills add serenorg/seren-skillsSelect “Kraken Leveraged BTC Deposit” when prompted
openclaw install kraken-ramp-leverage-bitcoin-polymarket-depositSee install page for setup instructions
Kraken
Added March 30, 2026