Skip to main content

Creating a dYdX v4 API Key for Crypto Trading Bots

This guide walks you through setting up API access for dYdX v4, a decentralized exchange. The process requires creating and funding a dYdX v4 protocol wallet before configuring your trading bot.

Funding the Wallet​

Before creating your dYdX v4 protocol wallet, ensure proper funding:

  1. Connect Your Wallet: Link your wallet to the dYdX platform
  2. Access Portfolio: Visit dYdX portfolio overview
  3. Add Funds: Use the Deposit button (bottom left) to fund your account

dYdX v4 platform login page

Creating dYdX v4 Protocol Wallet​

Set up your dYdX v4 protocol wallet:

  1. Access Platform: Log into dYdX platform
  2. Create Wallet: Select Create dYdX v4 Wallet from profile menu
  3. Save Address: Copy the dYdX Chain Address for API configuration

dYdX v4 API key creation interface

Retrieving API Credentials​

Gather these essential credentials:

  1. Get Secret Phrase:

    • Open profile menu
    • Select Export Secret Phrase
    • Acknowledge security warnings
    • Copy all 24 words carefully
  2. Store Securely:

    • Keep Chain Address (API key)
    • Save Secret Phrase (API secret)
    • Never share these credentials

dYdX v4 API key configuration page

Configuring Trading Bot​

Set up your bot with the gathered credentials:

  1. Access Settings: Open bot's API configuration section

  2. Enter Credentials:

    • API Key: Your dYdX Chain Address
    • API Secret: Your 24-word secret phrase
    • Verify all details carefully
  3. Trading Parameters:

    • Set fee structure
    • Configure rate limits
    • Adjust trading delays Double-check all settings

dYdX v4 API key confirmation and credentials display

Verification Steps​

Complete these final checks:

  1. Save Configuration:

    • Verify all API settings
    • Confirm credentials saved
  2. Test Connection:

    • Add trading pair
    • Check data updates
    • Verify account balance Monitor initial operations

A properly configured API ensures reliable automated trading operations. Regular reviews of your API settings help maintain account security. Remember to never share your API credentials and always use secure channels when setting up your trading bot.

Ready to Start Automated Trading on dYdX v4?​

Transform your trading approach with automated strategies designed for dYdX v4. Explore our dYdX Trading Bot features for optimal performance.