dYdX v4 Setup

This page lists the key differences that are specific to dYdX v4 setup.

Please deploy the latest version of the tool if you've ever used it before

https://tv-connector.gitbook.io/docs/setup/faq#how-to-deploy-the-latest-version-of-the-tool

Export your secret phrase(a set of 24 words) from dxdx website, then put it in .env file

.env
DYDX_V4_MNEMONIC=<PLEASE_PUT_YOUR_PHRASE>

This is official way provided by dYdX core team to execute trade via bot.

https://docs.dydx.exchange/developers/clients/composite_client#creating-a-localwallet

Set "dydxv4" to "exchange" field in Tradingview alert message.

Sample alert template:

{
"exchange": "dydxv4",
"strategy":"testStrategy",
"market":"BTC_USD",
"sizeUsd":"10000",
"reverse":false,
"order":"{{strategy.order.action}}",
"position":"{{strategy.market_position}}",
"price":"{{strategy.order.price}}"
}

  • Please deposit collateral(USDC) in advance. Otherwise you get "Error on getting account data" when you send request to the tool.

Please replace them if you want to use another one.(after forking the repo)

Last updated