webcerebrium / java-binance-api

Java Binance API Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot deserialize value of type `java.lang.Long` from String "9534.95000000"

thomasnappee opened this issue · comments

Hi !

I got this error when I call BinanceApiRestClient.getCandlestickBars :
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.lang.Long from String "9534.95000000": not a valid Long value
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 17] (through reference chain: java.util.ArrayList[0]->com.binance.api.client.domain.market.Candlestick["closeTime"])

It seems that price value is going to closeTime