Open Wayruha opened 1 year ago
hi. How is it that the answer comes with an empty field px (price)?
I can't answer this question as I'm not a representative of Okx or XChange. That's just a fact which I got for MARKET order
Is the error permanent or did it happen once? If permanent, show your code where it occurs. and attach debug logs. such that the request and response from the OKX server were visible
Getting NumberFormatException of GetOrder in case if order type is MARKET (price=""). There's a piece of code(BigDecimal.java:624)
at java.base/java.math.BigDecimal.(BigDecimal.java:401)
at java.base/java.math.BigDecimal.(BigDecimal.java:834)
at org.knowm.xchange.okex.OkexAdapters.adaptOrder(OkexAdapters.java:79)
at org.knowm.xchange.okex.service.OkexTradeService.getOrder(OkexTradeService.java:121)
new BigDecimal(order.getPrice())
which is failing because of illegal argument "". `java.lang.NumberFormatException: null at java.base/java.math.BigDecimal.