Package com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeTrades

Examples of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeTrades.CryptoTradeTrade


    CryptoTradeTrades tradeHistory = mapper.readValue(is, CryptoTradeTrades.class);

    List<CryptoTradeTrade> tradeList = tradeHistory.getTrades();
    assertThat(tradeList.size()).isEqualTo(2);

    CryptoTradeTrade trade = tradeList.get(0);
    assertThat(trade.getId()).isEqualTo(17);
    assertThat(trade.getTimestamp()).isEqualTo(1370965122);
    assertThat(trade.getCurrencyPair()).isEqualTo(CurrencyPair.BTC_USD);
    assertThat(trade.getType()).isEqualTo(CryptoTradeOrderType.Sell);
    assertThat(trade.getAmount()).isEqualTo("0.1");
    assertThat(trade.getRate()).isEqualTo("128");
    assertThat(trade.getMyOrder()).isEqualTo(1);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeTrades.CryptoTradeTrade

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.