XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
I am encountering the following error when submitting a limit order: org.knowm.xchange.exceptions.ExchangeException: null (HTTP status code: 200). Upon investigating, I received the following response from the exchange:
Additionally, the following debug information is logged:
14:08:19.939 [default] [main] DEBUG si.mazi.rescu.ResponseReader - Parsing response as class org.knowm.xchange.binance.dto.trade.BinanceNewOrder failed: com.fasterxml.jackson.databind.exc.MismatchedInputException: Unexpected token (VALUE_STRING), expected START_OBJECT: need JSON Object to contain As.WRAPPER_OBJECT type information for class org.knowm.xchange.binance.dto.trade.TimeInForce
at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 256] (through reference chain: org.knowm.xchange.binance.dto.trade.BinanceNewOrder["timeInForce"])
It appears that the Jackson deserializer expects a JSON object for the timeInForce field in the BinanceNewOrder class, but instead, it receives a string.
At the same time, the order itself is executed on the exchange.
I am encountering the following error when submitting a limit order: org.knowm.xchange.exceptions.ExchangeException: null (HTTP status code: 200). Upon investigating, I received the following response from the exchange:
Additionally, the following debug information is logged:
It appears that the Jackson deserializer expects a JSON object for the timeInForce field in the BinanceNewOrder class, but instead, it receives a string. At the same time, the order itself is executed on the exchange.
here are the stacktrace errors: