Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Got exception from getCandlestickBars() #102

Description

@blaizechuang

Hi, I got an exception after calling following code
client.getCandlestickBars(TradingPairSymbols.BTCPairs.ETH_BTC, CandlestickInterval.DAILY);

It seems that the type mapping in [BinanceApiServiceGenerator.java:60] is incorrect.

Stacktrace:
com.binance.api.client.exception.BinanceApiException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.lang.Long from String value ("0.08000000"): not a valid Long value at
[Source: okhttp3.ResponseBody$BomAwareReader@5c25378; line: 1, column: 17] (through reference chain: java.util.ArrayList[0]->com.binance.api.client.domain.market.Candlestick["closeTime"]) at com.binance.api.client.impl.BinanceApiServiceGenerator.executeSync(BinanceApiServiceGenerator.java:60) at com.binance.api.client.impl.BinanceApiRestClientImpl.getCandlestickBars(BinanceApiRestClientImpl.java:89)
at com.binance.api.client.impl.BinanceApiRestClientImpl.getCandlestickBars(BinanceApiRestClientImpl.java:94)
at
com.dpt.ileopard.binanceapitest.MainActivity$4.run(MainActivity.java:117) at java.lang.Thread.run(Thread.java:764)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions