Skip to content

Guide

How do I automate Kraken Futures from TradingView?

Point a TradingView alert at your Nyria strategy's webhook URL and Nyria places a market order on Kraken Futures USD perpetuals in your own account. Exits go out reduce-only. Nyria Paper simulates the same perps first, free. Perps are leveraged, and the exchange can liquidate a position.

Official documentation

Send TradingView alerts to Kraken Futures

  1. 1

    Create the API key

    Sign in at futures.kraken.com, select your name, then Settings. Create a key with General API on Full Access and Withdrawal API on No Access. Copy the public and private keys; the private key shows once.

  2. 2

    Connect Kraken Futures

    In Integrations, paste both keys on the Kraken Futures card and connect.

  3. 3

    Create a perps strategy

    Create a strategy with TradingView as its alert source, Perps as the asset type and your markets, such as BTC. Long behavior and Short behavior each take a leverage, or none.

  4. 4

    Set the TradingView alert

    Paste the alert message into your TradingView alert and set the webhook URL from the strategy's Integration tab. TradingView sends webhooks on its paid plans only, with two-factor sign-in on.

  5. 5

    Deploy on Nyria Paper

    Test the strategy on Nyria Paper first, free. Deploy a bot there and watch one full round trip.

  6. 6

    Deploy on Kraken Futures

    When the paper trades match your alerts, deploy a second bot and pick your Kraken Futures account on the Account step.

Messages to copy

An entry

{ "action": "OPEN", "ticker": "BTC", "direction": "LONG" }

The exit

{ "action": "CLOSE", "ticker": "BTC", "direction": "LONG" }

What Kraken Futures takes

  • Market orders on USD perpetuals, long and short.
  • Limit, take-profit and stop orders are refused, and the alert gets a message that says so.
  • An exit goes out reduce-only.
  • Kraken Futures lists BTC as PF_XBTUSD. An alert that says BTC is enough.

Size and leverage

  • The budget per entry sets the position size.
  • Leverage sets the margin the venue holds, never the size.
  • Leave leverage empty and Nyria sends none. Kraken Futures keeps the account's own setting for that market.
  • Each market has its own cap, and Kraken Futures refuses a request above it.

Keys and access

  • Withdrawal API stays on No Access, so the key can't move funds out.
  • A Read Only key can't place orders.
  • Only live Kraken Futures accounts work with Nyria.

Testing first

  • Nyria Paper simulates perps on every plan, with no key.
  • Nyria Paper holds no margin and never liquidates.
  • The exchange liquidates a live position that runs out of margin.

Questions

Can TradingView alerts trade on Kraken Futures?
Yes. Paste the strategy's webhook URL into the TradingView alert.
Does Nyria place limit orders on Kraken Futures?
No. Nyria sends market orders only, and limit, take-profit and stop orders are refused.
Can the API key withdraw funds?
No. Set Withdrawal API to No Access when you create it.
What does an exit alert do?
It goes out reduce-only, so it can only shrink the position.
Can I test a strategy before using Kraken Futures?
Yes. Test the strategy on Nyria Paper first, free.

Next

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.