Kraken Connector

About Kraken

Kraken is a centralized exchange based in San Francisco, CA founded in 2011 where users can trade not only several cryptocurrencies but as well as various fiat currencies such as USD, CAD, EUR, GBP, CHF and JPY.

It was the first bitcoin exchange to have its market data displayed on the Bloomberg Terminal, the first to pass a cryptographically verifiable proof-of-reserves audit, and one of the first exchanges to offer leveraged bitcoin margin trading.

Using the Connector

Because Kraken is a centralized exchange, you will need to generate and provide your API keys in order to trade using Hummingbot.

1
2
Enter your Kraken API key >>>
Enter your Kraken secret key >>>

Private keys and API keys are stored locally for the operation of the Hummingbot client only. At no point will private or API keys be shared to CoinAlpha or be used in any way other than to authorize transactions required for the operation of Hummingbot.

Copying and pasting into Hummingbot

See this page for more instructions in our Support section.

Creating Kraken API keys

This article below in their documentation shows step-by-step instructions on how to create API keys in Kraken exchange.

Take note that for your API keys to work with Hummingbot, set the Nonce Window to at least 10.

API key permissions

We recommend using only "trade" enabled API keys; enabling "withdraw", "transfer", or the equivalent is unnecessary for current Hummingbot strategies.

Shows nonce reminder when adding API keys to Kraken.

Also note that your account must have funds to avoid getting this error when trying to connect your Kraken API on Hummingbot.

1
2
3
4
Failed connections:                                                                                      |
    kraken: {'error': {'error': []}}

10:12:24 - kraken_market - Error received from https://api.kraken.com/0/private/Balance. Response is {'error': []}.

Asset Codes

Kraken uses asset codes in front of some pairs as a classification system. Asset codes starting with 'X' represent cryptocurrencies, though this is no longer followed for the newest coins. Asset codes starting with 'Z' represent fiat currencies.

BTC is represented as XBT in this exchange. Therefore trading on this pair is viewed as XXBT e.g. XXBT-USDT. However Hummingbot uses symbol conversion so it will be entered as BTC-USDT. For e.g.

This article shows the complete list assets and their corresponding asset codes.

Miscellaneous Info

Minimum Order Sizes

Kraken's minimum order volume is denominated in base currency. Refer to their article below for the minimum order size per market.

Transaction Fees

Kraken charges 0.16% on maker fees and 0.26% on taker orders for almost all of their cryptocurrency pairs. While they charge 0.20% on both maker and taker orders if trading on fiat and stablecoin base currency pairs.

Users who trade high volumes can receive more discounts on trading fees. Read through below for more information.

Hummingbot users can override the default fees by editing conf_fee_overrides.yml.