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

GMX Setup

This page lists the key differences that are specific to GMX v2 setup.

PreviousHow to get dYdX v3 CredentialsNextdYdX v4 Setup

Last updated 1 year ago

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

  • At the moment, it supports only GMX v2 on Arbitrum

  • Prepare enough amount of ETH to pay gas fee and collateral token in your wallet.

  • Specify

  • Set "gmx" to "exchange" field in Tradingview alert message.

  • Collateral token amount to send(=sizeUsd / GMX_LEVERAGE) must be greater than 2 USD

Sample alert template:

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

If you want to use another token as collateral, specify token symbol(e.g. "BTC, "ETH", "LINK") in "collateral" field.

Also, collateral except for USDC can be only used to trade the same market. Let's say if you use BTC as collateral, you can trade only for BTC_USD. (You can't ETH long/short with BTC collateral.

sample alert template:

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

By default, the tool uses native USDC() as collateral token.

https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
https://tv-connector.gitbook.io/docs/setup/faq#how-to-deploy-the-latest-version-of-the-tool
two required values in your .env file
The same spec as GMX frontend