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.

Issue when call getMyTrades() #157

@truonghatsts

Description

@truonghatsts

When I call this BinanceApiRestClientImpl.getMyTrades(), it thrown below exception:

com.binance.api.client.exception.BinanceApiException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "symbol" (class com.binance.api.client.domain.account.Trade), not marked as ignorable (11 known properties: "commissionAsset", "qty", "isBestMatch", "price", "isMaker", "commission", "time", "tradeId", "orderId", "id", "isBuyer"])
 at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 13] (through reference chain: java.util.ArrayList[0]->com.binance.api.client.domain.account.Trade["symbol"])
        at com.binance.api.client.impl.BinanceApiServiceGenerator.executeSync(BinanceApiServiceGenerator.java:60)
        at com.binance.api.client.impl.BinanceApiRestClientImpl.getMyTrades(BinanceApiRestClientImpl.java:183)
        at com.binance.api.client.impl.BinanceApiRestClientImpl.getMyTrades(BinanceApiRestClientImpl.java:193)

@joaopsilva : I believe it's because of the new api change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions