Package com.xeiam.xchange.justcoin.dto.marketdata

Examples of com.xeiam.xchange.justcoin.dto.marketdata.JustcoinDepth


  }

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

    final JustcoinDepth justcoinDepth = super.getMarketDepth(currencyPair.baseSymbol, currencyPair.counterSymbol);

    return JustcoinAdapters.adaptOrderBook(currencyPair, justcoinDepth);
  }
View Full Code Here


    final List<List<BigDecimal>> bids = new ArrayList<List<BigDecimal>>();
    bids.add(bid);
    final List<List<BigDecimal>> asks = new ArrayList<List<BigDecimal>>();
    asks.add(ask);
    justcoinDepth = new JustcoinDepth(bids, asks);
  }
View Full Code Here

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

    // Use Jackson to parse it
    final ObjectMapper mapper = new ObjectMapper();
    final JustcoinDepth orderBook = mapper.readValue(is, JustcoinDepth.class);

    // Verify that the example data was unmarshalled correctly
    assertThat(orderBook.getBids().get(0)).isEqualTo(justcoinDepth.getBids().get(0));
    assertThat(orderBook.getAsks().get(0)).isEqualTo(justcoinDepth.getAsks().get(0));
    assertThat(orderBook.getBids().size()).isEqualTo(43);
    assertThat(orderBook.getAsks().size()).isEqualTo(41);
  }
View Full Code Here

    List<JustcoinTicker> justcoinTickers = justcoinSpecificMarketDataService.getTickers();

    System.out.println(justcoinTickers);

    // Get the latest market depth data for BTC/LTC
    JustcoinDepth justcoinMarketDepth = justcoinSpecificMarketDataService.getMarketDepth(Currencies.BTC, Currencies.LTC);

    System.out.println(justcoinMarketDepth);

    List<JustcoinPublicTrade> trades = justcoinSpecificMarketDataService.getTrades(Currencies.LTC, 92734L);
    System.out.println(trades);
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.justcoin.dto.marketdata.JustcoinDepth

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.