Package com.xeiam.xchange.coinsetter.dto.marketdata

Examples of com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterListDepth


   * @param args [exchange, depth]
   */
  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {

    final CoinsetterListDepth coinsetterListDepth;
    final int argsLength = args.length;

    if (argsLength == 0) {
      coinsetterListDepth = marketDataServiceRaw.getCoinsetterFullDepth();
    }
View Full Code Here


  }

  @Test
  public void testAdaptOrderBookForDepth() throws JsonParseException, JsonMappingException, IOException {

    CoinsetterListDepth coinsetterListDepth = ObjectMapperHelper.readValue(getClass().getResource("dto/marketdata/depth-list.json"), CoinsetterListDepth.class);
    OrderBook orderBook = CoinsetterAdapters.adaptOrderBook(coinsetterListDepth);

    // asks should be sorted ascending
    List<LimitOrder> asks = orderBook.getAsks();
View Full Code Here

  }

  @Test
  public void testAdaptOrderBookForFullDepth() throws JsonParseException, JsonMappingException, IOException {

    CoinsetterListDepth coinsetterListDepth = ObjectMapperHelper.readValue(getClass().getResource("dto/marketdata/full_depth.json"), CoinsetterListDepth.class);
    OrderBook orderBook = CoinsetterAdapters.adaptOrderBook(coinsetterListDepth);

    assertEquals(1323424234L, orderBook.getTimeStamp().getTime());

    // asks should be sorted ascending
View Full Code Here

    log.info("Coinsetter ticker: {}", ticker);

    CoinsetterPairedDepth pairedDepth = marketDataService.getCoinsetterPairedDepth(10, "SMART");
    log.info("Coinsetter paired depth: {}", pairedDepth);

    CoinsetterListDepth fullDepth = marketDataService.getCoinsetterFullDepth("SMART");
    log.info("Coinsetter full depth: {}", fullDepth);

    CoinsetterQuote quoteBid = marketDataService.getCoinsetterQuote(new BigDecimal("5"), "BTCUSD");
    log.info("Coinsetter quote bid: {}", quoteBid);
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterListDepth

Copyright © 2018 www.massapicom. 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.