Ansaitse API:n kautta

Viimeksi päivitetty: 2. marraskuuta 2026

Johdanto

Kraken tarjoaa erilaisia tapoja tuottaa tuottoa käteis- ja kryptovaroille, jolloin käyttäjät voivat ansaita palkkioita varoista, jotka muuten saattaisivat olla käyttämättöminä heidän Kraken-tilillään (esimerkiksi varat, joita ei tällä hetkellä käytetä kaupankäyntiin). Tiedot Krakenin ansaintatuotteista ja kelpoisuuden yleiskatsaus löytyvät tukisivultamme.

REST API -rajapintamme tarjoaa useita päätepisteitä, joiden avulla käyttäjät voivat olla vuorovaikutuksessa ansaintatuotteemme kanssa:

  • •

    Hae luettelo ansaintastrategioista

  • •

    Listaa kaikki nykyiset allokaatiot

  • •

    Allokoi ja deallokoi varoja

  • •

    Hae allokaatioiden ja deallokaatioiden tila

API-avaimien on sisällettävä ansaintaluvat, jotta tuotteen kanssa voi olla vuorovaikutuksessa. Varmista, että varojen kysely- ja ansaintapäätepisteet on sallittu API-avaimille.

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.

Esimerkkivastaukset

Tutustu dokumentaatioomme esimerkkivastausten ja REST API:n käytön osalta - Dokumentaatio