capabilities.work

Allocate Earn Funds and Confirm

A 3-step recipe with Kraken. We can help you get access.

Recipe · 3 steps

Allocate Earn Funds and Confirm

with Kraken

Allocate funds to a Kraken Earn strategy and poll until it settles.

  1. List the Earn strategies available for the asset so the caller can confirm the chosen strategy id is offered. Private Spot endpoints are signed and accept application/x-www-form-urlencoded bodies.
  2. Allocate the requested amount into the chosen strategy. The call is asynchronous; a true result means the allocation request was accepted.
  3. Poll the allocate-status endpoint until the in-flight allocation for the strategy is no longer pending. Retries on a pending result.
What you'll need to have ready
  • nonce: Ever-increasing nonce for the signed request.
  • otp: One-time password if two-factor is enabled on the API key.
  • asset: The asset to allocate (e.g. XBT).
  • amount: The amount of the asset to allocate to the strategy.
  • strategyId: The Earn strategy id to allocate into.
For your developer

Arazzo workflow kraken:earn-allocate-and-confirm, 3 operations: listEarnStrategies → allocateEarnFunds → getEarnAllocateStatus. Specs on APIs.io.