junta / tradingview-alert-connector

Integrating TradingView strategy alert and executing automated trading for futures DEXes
https://tv-connector.gitbook.io/docs/
MIT License
74 stars 38 forks source link

dydx v4 setup issue #22

Closed layhau closed 4 months ago

layhau commented 4 months ago

Hi, thanks for making updates for dydx v4, much appreciated! I'm trying to set it up now but facing some issues, i tried following the instruction for .env file variables setup and noticed you mentioned for dydx v4 only mnemonic(seed) phrase is required, i supposed we need to include wallet address too, no? By the way I noticed dydx v4 has 2 addresses, one is standard ETH address and the other one is dydx chain address, do we need to include any of these? I tried both but getting error message: "Error on getting account data". Thanks for your great help and good work in advance, cheers!

junta commented 4 months ago

hey I've fixed the issue "Error on getting account data" and pushed a new version Could you deploy the latest version and try again? it should work now https://tv-connector.gitbook.io/docs/setup/faq#how-to-deploy-the-latest-version-of-the-tool

also, you don't need to provide any wallet addresses. It's derived from mnemonic automatically.

layhau commented 4 months ago

hi i tried again, i've deployed latest version you pushed, with just mnemonic for required variables in .env file, i obtained the mnemonic from dydx v4 "export secret phrase", it's basically a series of 24 words with space separated, right? somehow it doesn't seem to work, i'm still getting error "Error on getting account data".

Note: i'm using Ledger Nano X hardware wallet, connected to dydx v4 via wallet connect, which used to work well for v3, not sure if that's the cause of the problem?

junta commented 4 months ago

I think I've figured it out. Could you try again after deploying the latest version again? you don't need to modify your mnemonic phrase.

thank you for raising this issue

layhau commented 4 months ago

just tested, get message below: dYdX v3 Account Ready:false, dYdX v4 Account Ready:false, Perpetual Protocol Account Ready:false, GMX Account Ready:undefined

junta commented 4 months ago

It works well on my end. Have you deposited your collateral(USDC)?

layhau commented 4 months ago

brilliant, it worked now! thanks a lot!!