Package com.xeiam.xchange.mintpal.dto.marketdata

Examples of com.xeiam.xchange.mintpal.dto.marketdata.MintPalPublicTrade


    final MintPalBaseResponse<List<MintPalPublicTrade>> tradesResponse = mapper.readValue(is, tickersType);

    final List<MintPalPublicTrade> trades = tradesResponse.getData();
    assertThat(trades).hasSize(2);

    final MintPalPublicTrade trade = trades.get(0);
    assertThat(trade.getTime().getTime()).isEqualTo(1405056569000L);
    assertThat(trade.getType()).isEqualTo("SELL");
    assertThat(trade.getPrice()).isEqualTo("0.00000004");
    assertThat(trade.getAmount()).isEqualTo("2299494.19282106");
    assertThat(trade.getTotal()).isEqualTo("0.09197970");
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.mintpal.dto.marketdata.MintPalPublicTrade

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.