Package com.xeiam.xchange.itbit.v1.dto.marketdata

Examples of com.xeiam.xchange.itbit.v1.dto.marketdata.ItBitDepth


    return orders;
  }

  public ItBitOrder getItBitOrder(String orderId) throws IOException {

    ItBitOrder order = itBit.getOrder(signatureCreator, new Date().getTime(), valueFactory, walletId, orderId);

    return order;
  }
View Full Code Here


  public ItBitOrder placeItBitLimitOrder(LimitOrder limitOrder) throws IOException {

    String side = limitOrder.getType().equals(OrderType.BID) ? "buy" : "sell";

    ItBitOrder postOrder =
        itBit.postOrder(signatureCreator, new Date().getTime(), valueFactory, walletId, new ItBitPlaceOrderRequest(side, "limit", limitOrder.getCurrencyPair().baseSymbol, limitOrder
            .getTradableAmount().toPlainString(), limitOrder.getLimitPrice().toPlainString(), limitOrder.getCurrencyPair().baseSymbol + limitOrder.getCurrencyPair().counterSymbol));

    return postOrder;
  }
View Full Code Here

  public ItBitOrder placeItBitLimitOrder(LimitOrder limitOrder) throws IOException {

    String side = limitOrder.getType().equals(OrderType.BID) ? "buy" : "sell";

    ItBitOrder postOrder =
        itBit.postOrder(signatureCreator, new Date().getTime(), valueFactory, walletId, new ItBitPlaceOrderRequest(side, "limit", limitOrder.getCurrencyPair().baseSymbol, limitOrder
            .getTradableAmount().toPlainString(), limitOrder.getLimitPrice().toPlainString(), limitOrder.getCurrencyPair().baseSymbol + limitOrder.getCurrencyPair().counterSymbol));

    return postOrder;
  }
View Full Code Here

  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);

    this.pollingMarketDataService = new ItBitMarketDataService(exchangeSpecification, nonceFactory);
    this.pollingAccountService = new ItBitAccountService(exchangeSpecification, nonceFactory);
    this.pollingTradeService = new ItBitTradeService(exchangeSpecification, nonceFactory);
  }
View Full Code Here

  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);

    this.pollingMarketDataService = new ItBitMarketDataService(exchangeSpecification, nonceFactory);
    this.pollingAccountService = new ItBitAccountService(exchangeSpecification, nonceFactory);
    this.pollingTradeService = new ItBitTradeService(exchangeSpecification, nonceFactory);
  }
View Full Code Here

    super.applySpecification(exchangeSpecification);

    this.pollingMarketDataService = new ItBitMarketDataService(exchangeSpecification, nonceFactory);
    this.pollingAccountService = new ItBitAccountService(exchangeSpecification, nonceFactory);
    this.pollingTradeService = new ItBitTradeService(exchangeSpecification, nonceFactory);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.itbit.v1.dto.marketdata.ItBitDepth

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.