Skip to main content

Create an API Key

To use Gunbot you need to create an API key at your exchange.

Through the API Gunbot can connect to the exchange and trade on your behalf. Gunbot uses the exchange assigned API key as license key to prevent fraud.

On most exchanges you can find the option to create API keys on their account or settings page.

This page shows the minimum required settings for often used exchanges to create a working API key.

Most exchanges will only show you your API Secret once for security reasons.

As you'll require your public key (for the activation of your Gunbot) AND the secret key (for connecting to the exchange in Gunbot), save both in a safe place temporarily. Once you've connected to the exchange with Gunbot, you usually no longer require the public & secret key as both are stored, encrypted, in your Gunbot locally and usually don't require any change anymore.

If possible, always whitelist the API Key to a static IP address

Exchanges feature an "IP Whitelisting Feature", which restricts access to the exchange with this API Key only with the whitelisted IP. This is a security enhancement and should always be done in cases you're having a static IP Address.

List of exchanges

Below you'll find a non-exhaustive list of exchanges commonly used by Gunbot users.

To create a spot API Key on Binance, log in to your Binance.com account and then head over to your Profile -> API Management -> Create API -> System Generated. You can give the key any label you wish. Note: You can disable the API Security Policy by unchecking the yellow box at the top of the API page. This is not advised and a possible security risk. However, this can be used to temporarily disable that Binance deletes your API key after a certain amount of time automatically if you cannot whitelist the API key to a static IP Address. You can directly get to the Binance API settings here:

Binance API Settings

Binance
To create a futures API Key for Binance Futures, log in to your Binance.com account and then head over to your Profile -> API Management -> Create API -> System Generated. You can give the key any label you wish. You can directly get to the Binance API settings here:

Binance Futures API Settings

Binance Futures
To create a spot API Key on Binance.us, log in to your Binance.us account and then head over to your Profile -> API Management -> Create API -> System Generated. You can give the key any label you wish. You can directly get to the Binance API settings here:

Binance US API Settings

Binance US
To create a Bitfinex API key, log in to your Bitfinex.com account and then head over to your Account -> API -> Create New Key You can give the key any label you wish. You can directly get to the Bitfinex API settings here:

Bitfinex API Settings

Bitfinex
To create a Bitmex API Key, log in to your Bitmex.com account and then head over to your Account -> API Keysn You can give the key any name you wish. You can directly get to the Bitmex API settings here:

Bitmex API Settings

Bitmex
To create a Bittrex API Key, log in to your Bittrex.com account and then head over to My Account -> API Keysn You can directly get to the Bittrex API settings here:

Bittrex Global API Settings

Bittrex Global
To create a Bybit API Key, log in to your ByBit.com account and then head over to your Account -> API Management -> Create New API Key. Then select "Connect to Third-Party Applications" and select Gunbot from the dropdown. You can give the key any label you wish. You can directly get to the Bybit API settings here:

Bybit API Settings

Bybit
Setting up dYdX is a bit different due to its decentralised nature. Click the button below to get to a step-by-step guide to setup API Keys etc for this exchange.

dYdX API Setup


To create a CEX.io API Key, log in to your Cex.io account and then head over to your Account -> API Management. You can directly get to the Cex.io API settings here:

Cex.io API Settings

Cex.io
To create a Coinbase Exchange API Key, log in to your Coinbase Exchange account and then head over to your Account -> API Management. Note: If you have been using the old Coinbase Pro, you can reuse the same API Key you had back then. In case you have just signed up to Coinbase, please create a key through the below link. You can directly get to the Coinbase Exchange API settings here:

Coinbase Advanced API Settings

Coinbase Advanced
To create a Huobi API Key, log in to your Huobi.com account and then head over to your Account -> API Management -> Create New API Key. You can give the key any label you wish. You can directly get to the Huobi API settings here:

Huobi API Settings

Huobi
To create a Kraken API Key, log in to your Kraken.com account and then head over to your Account -> Security -> API. You can give the key any description you wish. You can directly get to the Kraken API settings here:

Kraken API Settings

Kraken
To create a Kucoin API Key, log in to your Kucoin.com account and then head over to your Account -> API Management -> Create API. You can give the key any name you wish. Kucoin also requires you to set a passphrase, which is essentially an additional password to provide to access Kucoin with your API. Please note it down! You can directly get to the Kucoin API settings here:

Kucoin API Settings

Kucoin
To create a MEXC API Key, log in to your Mexc.com account and then head over to your Account -> API You can give the key any description you wish. You can directly get to the MEXC API settings here:

MEXC API Settings

MEXC
To create an OKX API Key, log in to your Okx.com account and then head over to Profile -> API -> Create V5 API Key You can give the key any name you wish. Okx also requires you to set a passphrase, which is essentially an additional password to provide to access Okx with your API. Please note it down! You can directly get to the Okx API settings here:

Okx API Settings

Okx
To create a Poloniex API Key, log in to your Poloniex.com account and then head over to Profile -> API Keys -> Create API You can directly get to the MEXC API settings here:

Poloniex API Settings

Poloniex

Complete this section