Examples of JustcoinPublicTrade


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

    CollectionType collectionType = mapper.getTypeFactory().constructCollectionType(List.class, JustcoinPublicTrade.class);
    final List<JustcoinPublicTrade> trades = mapper.readValue(is, collectionType);

    // Verify that the example data was unmarshalled correctly
    assertThat(trades).hasSize(2);
    final JustcoinPublicTrade trade = trades.get(0);
    assertThat(trade.getAmount()).isEqualTo("0.16204");
    assertThat(trade.getPrice()).isEqualTo("600.632");
    assertThat(trade.getTid()).isEqualTo("92595");
    assertThat(trade.getDate()).isEqualTo(1403353443);
  }
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.