bitfinex.applySpecification(defaultExchangeSpecification);
// get all services
PollingMarketDataService marketDataService = bitfinex.getPollingMarketDataService();
PollingAccountService accout = bitfinex.getPollingAccountService();
PollingTradeService trades = bitfinex.getPollingTradeService();
OrderBook orderBook = marketDataService.getOrderBook(new CurrencyPair("XBT", "USD"));
System.out.println("BIDS: " + orderBook.getBids());
System.out.println("ASKS: " + orderBook.getAsks());
Trades trades2 = marketDataService.getTrades(new CurrencyPair("XBT", "USD"), 22233);
System.out.println("Current trades:" + trades2);
AccountInfo accountInfo = accout.getAccountInfo();
System.out.println(accountInfo);
OpenOrders openOrders = trades.getOpenOrders();
System.out.println("open orders: " + openOrders);