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

Limit orders on dydx #33

Open ypsik opened 2 weeks ago

ypsik commented 2 weeks ago

Hello,

i tested your connector, great job, just i have one issue. You implemented dydx connector as market orders,

const type = OrderType.MARKET;

its executing to random prices and not on prices you set as limits. Because markets on dydx are often not liquid Its just losing a lot of money, Maybe you can switch to limit orders? Maybe as option in config ? I think you need just change from market to limit this line.