System.out.println("Trades: " + trades);
}
private static void raw(Exchange exchange) {
BTCTradeTradeServiceRaw tradeService = (BTCTradeTradeServiceRaw) exchange.getPollingTradeService();
BTCTradeOrder[] orders = tradeService.getBTCTradeOrders(0, "open");
System.out.println("Open orders: " + orders.length);
String orderId = orders.length > 0 ? orders[0].getId() : "1";
BTCTradeOrder order = tradeService.getBTCTradeOrder(orderId);
System.out.println("Order status: " + order.getStatus());
}