Tradingview Alert Connector
  • Overview
  • What is Tradingview Strategy
  • Setup
    • Run on local PC
    • Run on cloud service
    • Test Tradingview strategy alert
    • Set Tradingview strategy alert
    • How to get dYdX v3 Credentials
    • GMX Setup
    • dYdX v4 Setup
    • Bluefin Setup
    • Add Sentry.io monitoring
    • FAQ
  • Additional Usage
    • Execute order from non-strategy alert
    • Run DCA bot
Powered by GitBook
On this page
  1. Setup

dYdX v4 Setup

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

PreviousGMX SetupNextBluefin Setup

Last updated 11 months ago

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

Export your secret phrase(a set of 24 words) from , 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.

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 when you send request to the tool.

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

Default validator&indexer URLs are specified in

https://docs.dydx.exchange/developers/clients/composite_client#creating-a-localwallet
config file
https://tv-connector.gitbook.io/docs/setup/faq#how-to-deploy-the-latest-version-of-the-tool
dxdx website
Click "Export secret phrase" in header