# create Bybit API Keys

## How to create your Bybit API Keys&#x20;

See how you will get your API Keys for the Bybit Exchange to be used in our crypto trading bots for spot and futures/derivatives trading.

1. Got to: <https://www.bybit.com/app/user/add-secret-key>
2. Create new API Keys
3. Select "System-generated API Keys"

<figure><img src="https://753607342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhogE6fBOvMLDd92Qub%2Fuploads%2F2XnDt8iLdA5sfvB8sEmY%2FBybitAPIKeysSystemGenerated.PNG?alt=media&#x26;token=03145c0d-5545-46d8-bb6c-2764e5af9750" alt=""><figcaption><p>Select System-generated API Keys</p></figcaption></figure>

1. And select "API Transaction" under "API Key Usage"
2. For Crypto Trading Bots you will never need to allow "withdraws" from your account. This means that no one is able to withdraw funds from your accounts with the correct permissions and you ensure the maximum security.
3.

```
<figure><img src="https://753607342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhogE6fBOvMLDd92Qub%2Fuploads%2FvGRJT4DuKAOImm6YRixN%2FBybitAPIPermissions.JPG?alt=media&#x26;token=9299f912-ef9b-4a82-b4d9-63286e5f98f0" alt=""><figcaption><p>Bybit API Keys permissions for crypto trading bots - never withdraw!</p></figcaption></figure>
```

4. Under "Add IP addresses(Optional)" do NOT enter your IP address, because you won't have a static IP. You IP will change and the bot can't access the exchange and trade for you.&#x20;
5. Click "Submit".

After you did this just copy and paste the shown keys into the bybitAPI.json. The secret Key will only be shown once.

```json
{
  "apiKey": "enter here",
  "secretKey": "enter here" 
}
```

{% hint style="info" %}
API Keys on Bybit are only valid for 3 months. This means you will need to do this every 3 months again. Don't forget that :)&#x20;
{% endhint %}
