Closed dante1989 closed 8 months ago
Dim ItemStopOKX = Await clientFutureOKX.UnifiedApi.Trading.PlaceOrderAsync(symbol:="ETH-USD-SWAP", side:=OKXOrderSide.Buy, type:=OKXOrderType.MarketOrder, quantity:=5, tradeMode:=OKXMarginMode.Isolated, positionSide:=OKXPositionSide.Long)
i got error: ItemStopOKX.Error is Parameter tdMode error
When i check ItemStopOKX.RequestUrl
I got RequestUrl is: https://www.okx.com/api/v5/trade/order
When i check ItemStopOKX.RequestBody
i got:
i have used OKXMarginMode.Isolated but body show tdMode is cash
Please check that error
Sorry, i mistaked, i need to use OKXTradeMode.Isolated, not OKXMarginMode.Isolated
Dim ItemStopOKX = Await clientFutureOKX.UnifiedApi.Trading.PlaceOrderAsync(symbol:="ETH-USD-SWAP", side:=OKXOrderSide.Buy, type:=OKXOrderType.MarketOrder, quantity:=5, tradeMode:=OKXMarginMode.Isolated, positionSide:=OKXPositionSide.Long)
i got error: ItemStopOKX.Error is Parameter tdMode error
When i check ItemStopOKX.RequestUrl
I got RequestUrl is: https://www.okx.com/api/v5/trade/order
When i check ItemStopOKX.RequestBody
i got:
i have used OKXMarginMode.Isolated but body show tdMode is cash
Please check that error