@@ -0,0 +1,1522 @@
+package com.xeiam.xchange.examples.bitfinex.marketdata;%0A%0Aimport java.io.IOException;%0A%0Aimport com.xeiam.xchange.Exchange;%0Aimport com.xeiam.xchange.ExchangeFactory;%0Aimport com.xeiam.xchange.bitfinex.v1.BitfinexExchange;%0Aimport com.xeiam.xchange.bitfinex.v1.dto.marketdata.BitfinexLendDepth;%0Aimport com.xeiam.xchange.bitfinex.v1.service.polling.BitfinexMarketDataServiceRaw;%0Aimport com.xeiam.xchange.service.polling.PollingMarketDataService;%0A%0Apublic class LendDepthDemo %7B%0A  public static void main(String%5B%5D args) throws Exception %7B%0A%0A    // Use the factory to get BTC-E exchange API using default settings%0A    Exchange bfx = ExchangeFactory.INSTANCE.createExchange(BitfinexExchange.class.getName());%0A%0A    // Interested in the public polling market data feed (no authentication)%0A    PollingMarketDataService marketDataService = bfx.getPollingMarketDataService();%0A    %0A    raw((BitfinexMarketDataServiceRaw) marketDataService);%0A  %7D%0A  %0A  private static void raw(BitfinexMarketDataServiceRaw marketDataService) throws IOException %7B%0A%0A    // Get the latest order book data for USD swaps%0A    BitfinexLendDepth bitfinexDepth = marketDataService.getBitfinexLendBook(%22USD%22, 50, 50);%0A%0A    System.out.println(%22Current Order Book size for BTC / USD: %22 + (bitfinexDepth.getAsks().length + bitfinexDepth.getBids().length));%0A%0A    System.out.println(%22First Ask: %22 + bitfinexDepth.getAsks()%5B0%5D.toString());%0A%0A    System.out.println(%22First Bid: %22 + bitfinexDepth.getBids()%5B0%5D.toString());%0A%0A    System.out.println(bitfinexDepth.toString());%0A  %7D%0A%7D%0A

Add example lend book demo