Package com.xeiam.xchange.coinsetter.dto.marketdata

Examples of com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterTrade


    if (length > 0) {
      timeStamp = new Date(coinsetterPairs[0].getAsk().getTimeStamp());
      asks = new ArrayList<LimitOrder>(length);
      bids = new ArrayList<LimitOrder>(length);
      for (CoinsetterPair coinsetterPair : coinsetterPairs) {
        CoinsetterTrade ask = coinsetterPair.getAsk();
        CoinsetterTrade bid = coinsetterPair.getBid();
        asks.add(new LimitOrder.Builder(OrderType.ASK, CurrencyPair.BTC_USD).limitPrice(ask.getPrice()).tradableAmount(ask.getSize()).build());
        bids.add(new LimitOrder.Builder(OrderType.BID, CurrencyPair.BTC_USD).limitPrice(bid.getPrice()).tradableAmount(bid.getSize()).build());
      }
    } else {
      timeStamp = new Date();
      asks = Collections.emptyList();
      bids = Collections.emptyList();
View Full Code Here


        if (event == null) {
          log.warn("event is null.");
        }
        else if (event.equals("last")) {
          CoinsetterTrade last = gson.fromJson(args[0], CoinsetterTrade.class);
          for (CoinsetterExchangeListener listener : exchangeListeners) {
            listener.onLast(last);
          }
        }
        else if (event.equals("ticker")) {
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterTrade

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.