diff --git a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/service/CoinexTradeService.java b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/service/CoinexTradeService.java index e17e873c5dc..48533755e5b 100644 --- a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/service/CoinexTradeService.java +++ b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/service/CoinexTradeService.java @@ -39,8 +39,8 @@ public Collection getOrder(OrderQueryParams... orderQueryParams) throws I OrderQueryParamInstrument params = (OrderQueryParamInstrument) orderQueryParams[0]; try { - CoinexOrder gateioOrder = orderStatus(params.getInstrument(), params.getOrderId()); - return Collections.singletonList(CoinexAdapters.toOrder(gateioOrder)); + CoinexOrder order = orderStatus(params.getInstrument(), params.getOrderId()); + return Collections.singletonList(CoinexAdapters.toOrder(order)); } catch (CoinexException e) { throw CoinexErrorAdapter.adapt(e); }