LimitOrder bigLimitOrder = new LimitOrder(OrderType.ASK, new BigDecimal(1.152), new CurrencyPair("BTC", "GBP"), null, null, new BigDecimal(500));
((CoinfloorStreamingExchangeService) streamingExchangeService).placeOrder(bigLimitOrder);
TimeUnit.MILLISECONDS.sleep(1000);
// request outcome of theoretical marketOrder
MarketOrder estMarketOrder = new MarketOrder(OrderType.ASK, new BigDecimal(1), new CurrencyPair("BTC", "GBP"));
((CoinfloorStreamingExchangeService) streamingExchangeService).estimateMarketOrder(estMarketOrder);
TimeUnit.MILLISECONDS.sleep(1000);
// get user's current open orders, cancel all of them.
CoinfloorOpenOrders openOrders = (CoinfloorOpenOrders) ((CoinfloorStreamingExchangeService) streamingExchangeService).getOrders().getPayloadItem("raw");