You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting NumberFormatException of GetOrder in case if order type is MARKET (price="").
There's a piece of code new BigDecimal(order.getPrice()) which is failing because of illegal argument "".
`java.lang.NumberFormatException: null
at java.base/java.math.BigDecimal.(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)
The text was updated successfully, but these errors were encountered:
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
new BigDecimal(order.getPrice())
which is failing because of illegal argument "".`java.lang.NumberFormatException: null
at java.base/java.math.BigDecimal.(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)
The text was updated successfully, but these errors were encountered: