ORDER_WOULD_TRIGGER_IMMEDIATELY not present in OrderRejectReason
Moskitek opened this issue · comments
We have exception in parsing WebSocket message using BinanceApi:
com.binance.api.client.exception.BinanceApiException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type com.binance.api.client.domain.OrderRejectReason from String "ORDER_WOULD_TRIGGER_IMMEDIATELY": value not one of declared Enum instance names: [INSUFFICIENT_BALANCE, ACCOUNT_CANNOT_SETTLE, UNKNOWN_ACCOUNT, UNKNOWN_ORDER, DUPLICATE_ORDER, UNKNOWN_INSTRUMENT, ACCOUNT_INACTIVE, MARKET_CLOSED, PRICE_QTY_EXCEED_HARD_LIMITS, NONE] at [Source: {"e":"executionReport","E":NUMBER,"s":"BTCUSDT","c":"bnc17","S":"BUY","o":"STOP_LOSS_LIMIT","f":"GTC","q":"0.00237200","p":"6240.00000000","P":"6320.00000000","F":"0.00000000","g":-1,"C":"null","x":"REJECTED","X":"REJECTED","r":"ORDER_WOULD_TRIGGER_IMMEDIATELY","i":-1,"l":"0.00000000","z":"0.00000000","L":"0.00000000","n":"0","N":null,"T":1533755889379,"t":-1,"I":-1,"w":false,"m":false,"M":false,"O":-1,"Z":"0.00000000"}; line: 1, column: 236] (through reference chain: com.binance.api.client.domain.event.OrderTradeUpdateEvent["r"]) at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.getUserDataUpdateEventDetail(UserDataUpdateEventDeserializer.java:56) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.deserialize(UserDataUpdateEventDeserializer.java:45) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.deserialize(UserDataUpdateEventDeserializer.java:18) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3798) ~[jackson-databind-2.8.8.jar:2.8.8] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2842) ~[jackson-databind-2.8.8.jar:2.8.8] at com.binance.api.client.impl.BinanceApiWebSocketListener.onMessage(BinanceApiWebSocketListener.java:43) [binance-api-client-1.0.2-SNAPSHOT.jar:?] at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:307) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:222) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) [okhttp-3.8.1.jar:?] at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) [okhttp-3.8.1.jar:?] at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) [okhttp-3.8.1.jar:?] at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) [okhttp-3.8.1.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_131] at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]