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

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


    assertThat(ordersResponse.getStatus()).isEqualTo("success");
    final List<MintPalPublicOrders> orderbook = ordersResponse.getData();

    assertThat(orderbook).hasSize(2);
    final MintPalPublicOrders asksWrapper = orderbook.get(0).getType().equals("buy") ? orderbook.get(1) : orderbook.get(0);
    final List<MintPalPublicOrder> asks = asksWrapper.getOrders();
    assertThat(asksWrapper.getCount()).isEqualTo(asks.size());

    final MintPalPublicOrder ask = asks.get(0);
    assertThat(ask.getPrice()).isEqualTo("0.01289999");
    assertThat(ask.getAmount()).isEqualTo("0.04599935");
    assertThat(ask.getTotal()).isEqualTo("0.00059339");
View Full Code Here

TOP

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

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.