Kraken

Kraken

Kraken API Information

Kraken API Link: https://docs.kraken.com/api/docs/guides/global-intro

Base Endpoints

  • Base Endpoint: https://api.kraken.com

Futures API URL

To access the REST API endpoints, HTTP calls must be sent to the following endpoints:

  • https://futures.kraken.com/derivatives/api/v3/
  • https://futures.kraken.com/api/history/v2/
  • https://futures.kraken.com/api/charts/v1/

Futures Rate Limits

Request limits are determined based on the cost associated with each API call, and rate-limit budgets depend on the path used by the endpoint. Public endpoints have no cost and are therefore not included in any rate-limit budget. For /derivatives endpoints, clients may spend a maximum of 500 in 10 seconds.

Requests

Request payloads support both JSON encoding (Content-Type: application/json) and form-encoded (Content-Type: application/x-www-form-urlencoded) formats. It is recommended to specify User-Agent in the headers for all requests. This helps optimize interactions and improves the overall efficiency and security of the API.

Authentication Parameters

For the REST API, the following parameters are used to authenticate requests to private endpoints:

  • API-Key HTTP header parameter: The public key from your API key-pair.
  • API-Sign HTTP header parameter: The encrypted signature of the message.
  • nonce payload parameter: A continuously increasing, unsigned 64-bit integer.
  • otp payload parameter: One-time-password, required only if 2FA is configured for the API.

Error Details

HTTP status codes are generally not used by the API to indicate request success or failure. Any errors or warnings are indicated in the error field of the response as described above. Status codes other than 200 indicate a problem reaching our servers.

Error messages generally follow this format:

  • : E for error, W for warning.
  • : General, Auth, API, Query, Order, Trade, Funding, or Service.
  • : A text string describing the reason for the error.

Rate Limits

Each REST API user has a call counter starting at 0. Ledger/trade history calls increase this counter by 2. All other API calls increase the counter by 1 (AddOrder and CancelOrder are exceptions; they are subject to a separate limiter detailed below).

Tier Max API Counter API Counter Decay
Starter 15 -0.33/sec
Intermediate 20 -0.5/sec
Pro 20 -1/secsec

RCXT Kraken API Information

Kraken exchange has 1 Base Endpoint:

  • apiUrl: api.kraken.com

Rate Limits

The rate limits for each endpoint on the Kraken exchange are as follows:

Limit (1 dakika) Spot Transfer In Transfer Out
Fetch Balances 20 Request Weight
Fetch Trades 20 Request Weight
Fetch Orders 20 Request Weight
Fetch DepositWithdrawals 1 Request Weight 18000 Request Weight(UID)