/
Launch Hummingbot Miner

dYdX Perpetual

About dYdX Perpetual Exchange Connector


dYdX is a leading decentralized exchange that currently supports perpetual, margin trading, spot trading, lending, and borrowing. dYdX runs on smart contracts on the Ethereum blockchain, and allows users to trade with no intermediaries.

Prerequisites

Supported Installation Types

Currently, this connector does not work on binary installation. Install Hummingbot via Docker or from source to use this connector.

API Credentials and Stark Key

  1. Connect your Ethereum wallet to dydx Perpetual
  2. You need the following to connect Hummingbot to the exchange:

API credentials and a stark private key can be obtained programmatically using their documentation:

Alternatively, you can follow these steps to get the required credentials:

  1. From the dydx Perpetuals exchange, right-click anywhere on your web browser, and select Inspect to open Developer Tools
  2. Go to Application > Local Storage > https://trade.dydx.exchange
  3. Select STARK_KEY_PAIRS and click the drop-down next to your wallet address to get the stark private key
  4. Select API_KEY_PAIRS and click the drop-down next to your wallet address to get the API key, secret key, and passphrase

Ethereum Wallet Address

You can use any Ethereum wallet address to connect to Hummingbot. If you're new to this and unsure which one to use, most of our users are on MetaMask.

Connecting to Exchange

  1. From Hummingbot, run connect dydx_perpetual command
  2. Enter the required dydx Perpetual credentials on each prompt
  3. Enter your Ethereum wallet address
  4. Hummingbot will confirm when you have successfully connected to the exchange

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.

TIP:
For copying and pasting into Hummingbot, see  this page for more instructions in our Support section.

Minimum Order Sizes

Their help article below provides information on the minimum order size per asset.

Transaction Fees

By default, trading fees are 0.05% for market makers and 0.20% for takers on dYdX. See the article below for more details.

Edit on GitHub