Examples of BTERDepth


Examples of com.xeiam.xchange.bter.dto.marketdata.BTERDepth

    return handleResponse(bterTicker);
  }

  public BTERDepth getBTEROrderBook(String tradeableIdentifier, String currency) throws IOException {

    BTERDepth bterDepth = bter.getFullDepth(tradeableIdentifier.toLowerCase(), currency.toLowerCase());

    return handleResponse(bterDepth);
  }
View Full Code Here

Examples of com.xeiam.xchange.bter.dto.marketdata.BTERDepth

  }

  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {

    BTERDepth bterDepth = super.getBTEROrderBook(currencyPair.baseSymbol, currencyPair.counterSymbol);

    return BTERAdapters.adaptOrderBook(bterDepth, currencyPair);
  }
View Full Code Here

Examples of com.xeiam.xchange.bter.dto.marketdata.BTERDepth

    // Read in the JSON from the example resources
    InputStream is = BTERAdapterTest.class.getResourceAsStream("/marketdata/example-depth-data.json");

    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    BTERDepth depth = mapper.readValue(is, BTERDepth.class);

    OrderBook orderBook = BTERAdapters.adaptOrderBook(depth, CurrencyPair.LTC_BTC);

    List<LimitOrder> asks = orderBook.getAsks();
    assertThat(asks).hasSize(3);
View Full Code Here

Examples of com.xeiam.xchange.bter.dto.marketdata.BTERDepth

    System.out.println(tickers);

    BTERTicker ticker = marketDataService.getBTERTicker(Currencies.PPC, Currencies.BTC);
    System.out.println(ticker);

    BTERDepth depth = marketDataService.getBTEROrderBook(Currencies.BTC, Currencies.CNY);
    System.out.println(depth);

    BTERTradeHistory tradeHistory = marketDataService.getBTERTradeHistory(Currencies.BTC, Currencies.CNY);
    System.out.println(tradeHistory);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.