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
13 stars 10 forks source link

Deserialize JsonException: The JSON value could not be converted to System.Decimal. Path: $.data[0].totalFee | LineNumber: 0 | BytePositionInLine: 520., Path: $.data[0].totalFee, LineNumber: 0, LinePosition: 520 #27

Closed dante1989 closed 3 months ago

dante1989 commented 3 months ago

Try

    Dim BitgetFuturesPositions_CheckPosition = Await clientBitget.FuturesApiV2.Trading.GetPositionAsync(BitgetProductTypeV2.CoinFutures, Symbol_CoinFutureV2, AssetCoin)

    For Each LongShortPosition In BitgetFuturesPositions_CheckPosition.Data

    Next

Catch ex As Exception

End Try

ex.Message: Object reference not set to an instance of an object BitgetFuturesPositions_CheckPosition.Error.Message: Deserialize JsonException: The JSON value could not be converted to System.Decimal. Path: $.data[0].totalFee | LineNumber: 0 | BytePositionInLine: 520., Path: $.data[0].totalFee, LineNumber: 0, LinePosition: 520

JKorf commented 3 months ago

Thanks for the report, I'll fix it

JKorf commented 3 months ago

Has been fixed, and latest version is available on NuGet again :)