Skip to main content

Creating a dYdX v4 API Key

dYdX v4 is a decentralized finance (DeFi) exchange that offers advanced trading features. This guide will help you configure your dYdX v4 API to work with Gunbot, enabling automated trading on the dYdX platform.

Funding the Wallet

Before creating the dYdX v4 protocol wallet, ensure your wallet is funded.

  1. Open your wallet and ensure it is connected to the dYdX platform.
  2. Navigate to the dYdX portfolio overview.
  3. Click on the Deposit button located at the bottom left of the screen.

Funding Wallet

Creating dYdX v4 Protocol Wallet

Once your wallet is funded, follow these steps to create the dYdX v4 protocol wallet:

  1. Navigate to the dYdX platform.
  2. Click on the profile menu and select Create dYdX v4 Wallet.
  3. Copy the dYdX Chain Address, which will be used as the API key for Gunbot.

Creating dYdX Wallet

Retrieving API Credentials

To configure Gunbot, you need the API key (dYdX Chain Address) and API secret (wallet's secret phrase).

  1. In the dYdX platform, go to the profile menu and click Export Secret Phrase.
  2. A warning will appear. Acknowledge the risks and confirm to reveal the secret phrase.
  3. Copy the 24-word secret phrase. This will be used as the API secret in Gunbot.

Reveal Secret Phrase

Configuring Gunbot GUI

With your dYdX API credentials ready, follow these steps to configure Gunbot:

  1. Open the Gunbot GUI and navigate to the Manage API Slots section.
  2. Select dYdX v4 from the list of available exchanges.
  3. Enter the copied dYdX Chain Address as the API key.
  4. Enter the 24-word secret phrase as the API secret.
  5. Configure the trading fees, delay, and rate limit as required.

Gunbot API Configuration

Verification and Final Steps

  1. Save the API settings in Gunbot.
  2. Add a trading pair (ex. USD-ETH) with your fav. futures trading strategy and click Start Trading.
  3. Verify the integration by navigating to the chart page in Gunbot. Ensure that the candle data for your trading pair is updating correctly and that your balances are displayed in the top menu.

If you encounter any issues, refer to the troubleshooting section or contact support for assistance.

By following these steps, you will successfully integrate your dYdX v4 account with Gunbot, enabling automated trading on the dYdX platform.