Examples of CryptoTradeDepth


Examples of com.xeiam.xchange.cryptotrade.dto.marketdata.CryptoTradeDepth

  }

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

    CryptoTradeDepth cryptoTradeDepth = super.getCryptoTradeOrderBook(currencyPair);

    return CryptoTradeAdapters.adaptOrderBook(currencyPair, cryptoTradeDepth);
  }
View Full Code Here

Examples of com.xeiam.xchange.cryptotrade.dto.marketdata.CryptoTradeDepth

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

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

    OrderBook orderBook = CryptoTradeAdapters.adaptOrderBook(CurrencyPair.BTC_USD, depth);

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

Examples of com.xeiam.xchange.cryptotrade.dto.marketdata.CryptoTradeDepth

    return handleResponse(cryptoTradeTickers).getTickers();
  }

  public CryptoTradeDepth getCryptoTradeOrderBook(CurrencyPair currencyPair) throws CryptoTradeException, IOException {

    CryptoTradeDepth cryptoTradeDepth = cryptoTradeProxy.getFullDepth(currencyPair.baseSymbol.toLowerCase(), currencyPair.counterSymbol.toLowerCase());

    return handleResponse(cryptoTradeDepth);
  }
View Full Code Here

Examples of com.xeiam.xchange.cryptotrade.dto.marketdata.CryptoTradeDepth

    System.out.println(ticker);

    Map<CurrencyPair, CryptoTradeTicker> tickers = marketDataService.getCryptoTradeTickers();
    System.out.println(tickers);

    CryptoTradeDepth marketDepth = marketDataService.getCryptoTradeOrderBook(CurrencyPair.BTC_USD);
    System.out.println(marketDepth);

    List<CryptoTradePublicTrade> publicTradeHistory = marketDataService.getCryptoTradeTradeHistory(CurrencyPair.BTC_USD, 1405805427);
    System.out.println(publicTradeHistory);
  }
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.