burakoner / OKX.Api

Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper
MIT License
39 stars 15 forks source link

1.4.0 Json Deserialize Exception: converting value {null} to type 'System.Decimal'. Path 'data[457].askPx' #51

Closed yvvw closed 9 months ago

burakoner commented 10 months ago

Which method? which endpoint? which model?

yvvw commented 10 months ago

It was working fine before.

client = new OKXRestApiClient(new OKXRestApiClientOptions
{
    ApiCredentials = new OkxApiCredentials(accessKey, secretKey, passphrase)
})
client.OrderBookTrading.MarketData.GetTickersAsync(OKX.Api.Enums.OkxInstrumentType.Spot)

image

burakoner commented 10 months ago

It's related with orderbook status. If there is no active orders there wont be best ask or bid. I'll fix this issue in next version. thanks

burakoner commented 9 months ago

Fixed in version 1.5.0