ℹ️ Exchange Info¶
- API docs: https://docs.dydx.exchange/#perpetual-contracts
- Transaction fees: https://help.dydx.exchange/en/articles/4800191-are-there-fees-to-using-dydx
- Minimum order size: https://help.dydx.exchange/en/articles/4798055-what-is-the-minimum-order-size-on-perpetuals
- Creating API keys: https://docs.dydx.exchange/#get-api-keys
- Release added: 0.39.0 by CoinAlpha
- Maintainer: CoinAlpha
Since this exchange is an Ethereum-based decentralized exchange (DEX), first run
connect ethereum in order to connect your Ethereum wallet. See Ethereum for more information. Then, go to dYdX and create API keys for the same Ethereum wallet.
connect dydx_perpetual in Hummingbot in order to add your API keys.
You will need the following to connect Hummingbot to
- API key
- API secret key
- Account number: set this value to
- Stark private key
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:
- From the dydx Perpetuals exchange, right-click anywhere on your web browser, and select Inspect to open Developer Tools
- Go to Application > Local Storage > https://trade.dydx.exchange
- Select STARK_KEY_PAIRS and click the drop-down next to your wallet address to get the stark private key
- Select API_KEY_PAIRS and click the drop-down next to your wallet address to get the API key, secret key, and passphrase
Follow the instructions below to deposit assets onto dYdX's Layer 2 side-chain:
Hummingbot assumes 0.05% maker fees and 0.20% taker fees (source).
Users can override these assumptions with Override Fees.