JKorf / Bybit.Net

A C# .netstandard client library for the Bybit REST and Websocket V5 API focusing on clear usage and models
https://jkorf.github.io/Bybit.Net/
90 stars 64 forks source link

GetCollateralInfoAsync startted to give error... #226

Closed hcanak closed 1 month ago

hcanak commented 1 month ago

Hello @JKorf,

Below end point was working good until today. Today it statted to give following error. Bybit might have changed th json format.

V5Api.Account.GetCollateralInfoAsync()

Error Code: Error Message: Deserialize JsonSerializationException: Error converting value {null} to type 'System.Decimal'. Path 'result.list[118].borrowUsageRate', line 1, position 37315.

JKorf commented 1 month ago

Hi, can confirm. It looks like there is now a null value returned which previously never happened. I'll fix it for next version

hcanak commented 1 month ago

Now, it is working properly. Null state of that variable seems to be volatile.

JKorf commented 1 month ago

Yeah probably. Either way last version supports null value