String username = args[0];
String password = args[1];
String ipAddress = args[2];
Exchange coinsetter = CoinsetterExamplesUtils.getExchange(username, password, ipAddress);
PollingTradeService tradeService = coinsetter.getPollingTradeService();
String orderId = tradeService.placeLimitOrder(new LimitOrder(OrderType.BID, new BigDecimal("0.01"), CurrencyPair.BTC_USD, null, null, new BigDecimal("0.01")));
log.info("limit order id: {}", orderId);
OpenOrders openOrders = tradeService.getOpenOrders();
log.info("open orders: {}", openOrders);
boolean cancelled = tradeService.cancelOrder(orderId);
log.info("order {} canceling result: {}", orderId, cancelled);
((CoinsetterTradeService) tradeService).logout();
}