JKorf / Bitget.Net

A C# .netstandard client library for the Bitget REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Bitget.Net/
MIT License
12 stars 8 forks source link

FuturesApiV2.Trading.PlaceOrderAsync got error #28

Closed dante1989 closed 1 month ago

dante1989 commented 1 month ago

Dim Item_Bitget = Await clientBitget.FuturesApiV2.Trading.PlaceOrderAsync(BitgetProductTypeV2.CoinFutures, "XRPUSD", "XRP", Bitget.Net.Enums.V2.OrderSide.Buy, Bitget.Net.Enums.V2.OrderType.Market, Bitget.Net.Enums.V2.MarginMode.IsolatedMargin, 70, positionSide:=Bitget.Net.Enums.V2.PositionSide.Long)

If Item_Bitget .Success = False Then MsgBox(Item_Bitget .RequestBody) MsgBox(Item_Bitget .Error.Message.ToString) End If

i got this RequestBody image and i got this error image

JKorf commented 1 month ago

Seems the position side parameter is incorrect, I'll fix it

JKorf commented 1 month ago

Should work with latest version