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 orders aren't received by dydx.trade #24

Closed adrianmess closed 4 months ago

adrianmess commented 4 months ago

Hi, I've been using your dydx-tradingview-integration github repo to make trades on dydx V3. I created a new webservice and used tradingview-alert-connector to trade on dydx V4 and but the trades aren't making it to the dydx4 exchange. I'm not seeing any error messages in my webservice logs. I've provided my TV alert message and what I see in my web service logs below. Not sure what i'm missing. I'm hoping you can provide some guidance.

TradingView Alert Message: { "exchange": "dydxv4", "strategy":"SOL_USD", "market":"SOL_USD", "size":"10", "reverse":false, "order":"{{strategy.order.action}}", "position":"{{strategy.market_position}}", "price":"{{strategy.order.price}}" }

Webservice Log Recieved Tradingview strategy alert: { exchange: 'dydxv4', strategy: 'SOL_USD', market: 'SOL_USD', size: '10', reverse: false, order: 'buy', position: 'long', price: '115.931' } strategyData { reverse: false, isFirstOrder: 'true' } latestPrice 115.931 orderParams for dydx { market: 'SOL-USD', side: 'BUY', size: 10, price: 115.931 }

junta commented 4 months ago

Hi, I've made some changes yesterday, so, could you please check if your deployed version is the latest one? https://tv-connector.gitbook.io/docs/setup/faq#how-to-deploy-the-latest-version-of-the-tool

also, did you export your mnemonic phrase on dydx website? https://tv-connector.gitbook.io/docs/setup/dydx-v4-setup#export-your-secret-phrase-a-set-of-24-words-from-dxdx-website-then-put-it-in-.env-file

adrianmess commented 4 months ago

Hi, I was able to resolve the issue after i deployed the latest version and then cleared the cache and deployed again.