Package com.xeiam.xchange.cryptotrade.dto.account.CryptoTradeTransactions

Examples of com.xeiam.xchange.cryptotrade.dto.account.CryptoTradeTransactions.CryptoTradeTransaction


    CryptoTradeTransactions transactionHistory = mapper.readValue(is, CryptoTradeTransactions.class);

    List<CryptoTradeTransaction> transactionList = transactionHistory.getTransactions();
    assertThat(transactionList.size()).isEqualTo(2);

    CryptoTradeTransaction transaction = transactionList.get(0);
    assertThat(transaction.getId()).isEqualTo(2425);
    assertThat(transaction.getTimestamp()).isEqualTo(1371058368);
    assertThat(transaction.getCurrency()).isEqualTo(Currencies.BTC);
    assertThat(transaction.getType()).isEqualTo("Bought");
    assertThat(transaction.getAmount()).isEqualTo("0.49925");
    assertThat(transaction.getDescription()).isEqualTo("Bought 0.5 BTC (-0.15% Fees) @ 123 USD from Order #8");
    assertThat(transaction.getStatus()).isEqualTo("Completed");
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.cryptotrade.dto.account.CryptoTradeTransactions.CryptoTradeTransaction

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.