use of org.knowm.xchange.coinbene.service.CoinbeneTradeService in project XChange by knowm.
the class CoinbeneExchange method initServices.
@Override
protected void initServices() {
this.marketDataService = new CoinbeneMarketDataService(this);
this.accountService = new CoinbeneAccountService(this);
this.tradeService = new CoinbeneTradeService(this);
}
use of org.knowm.xchange.coinbene.service.CoinbeneTradeService in project XChange by knowm.
the class CoinbeneTradeDemo method raw.
public static void raw(CoinbeneExchange exchange) throws IOException {
CurrencyPair pair = CurrencyPair.BTC_USDT;
CoinbeneTradeService tradeService = (CoinbeneTradeService) exchange.getTradeService();
// Get open orders
OpenOrders orders = tradeService.getOpenOrders(pair);
LimitOrder order = orders.getOpenOrders().stream().collect(StreamUtils.singletonCollector());
if (order != null) {
System.out.println(order);
}
}
Aggregations