Valter Kungla

Results 5 comments of Valter Kungla

Inspecting dydx webside request showed that you need to make reverse order to have a position closed. APi docs need update

+1 @spade69 you can find working example here: https://github.com/dydxprotocol/v3-client/issues/164

web3.eth.accounts.wallet.add("");// I have put public stark key No, eth private key goes here positionId You can find correct positionId this from v3/account endpoint response

+1 to last comment - really hard to figure that out.

Probably because it can round it down below market price. You can try something like that, it worked for me: Math.round(market.indexPrice * 1.001) + 1