Tjäna via API

Senast uppdaterad: 2 november 2026

Introduktion

Kraken erbjuder olika metoder för att generera avkastning för innehavare av kontanter och krypto, vilket gör att användare kan tjäna belöningar på tillgångar som annars skulle ligga oanvända på deras Kraken-konto (till exempel medel som för närvarande inte används för handel). Detaljer om Krakens earn-produkter och en översikt över behörighet finns i våra supportartiklar.

Vårt REST API tillhandahåller flera slutpunkter som gör det möjligt för användare att interagera med vår earn-produkt:

  • •

    Hämta en lista över earn-strategier

  • •

    Lista alla aktuella allokeringar

  • •

    Allokera och deallokera medel

  • •

    Hämta status för allokeringar och deallokeringar

API-nycklar måste inkludera earn-behörigheter för att interagera med produkten. Se till att funds query och earn-slutpunkter är behöriga för API-nycklarna.

Manage staking positions programmatically

If you manage a large balance across several assets, you can run the full staking lifecycle through the REST API instead of the app. Create an API key with earn permissions, then use the endpoints described on this page to move funds in and out of earn strategies and to check where each allocation stands.

A typical workflow follows these steps:

  • •

    Retrieve the list of earn strategies to see the strategies available to your account.

  • •

    Allocate funds to the strategy you choose.

  • •

    Get the status of the allocation to confirm the request has completed.

  • •

    List all current allocations to review your open positions.

  • •

    Deallocate funds when you want to exit, and get the status of the deallocation to confirm it has completed.

Before you start

Keep API keys limited to the permissions they need. Earn permissions are required to interact with this product. Check the details of each strategy before allocating, because commission, minimums and unbonding terms can differ by asset.

Exempelsvar

Vänligen granska vår dokumentation för exempel på svar och användning av REST API - Dokumentation