Package com.xeiam.xchange.kraken.dto.trade.KrakenStandardOrder

Examples of com.xeiam.xchange.kraken.dto.trade.KrakenStandardOrder.KrakenOrderBuilder


  }

  public KrakenOrderResponse placeKrakenMarketOrder(MarketOrder marketOrder) throws IOException {

    KrakenType type = KrakenType.fromOrderType(marketOrder.getType());
    KrakenOrderBuilder orderBuilder = KrakenStandardOrder.getMarketOrderBuilder(marketOrder.getCurrencyPair(), type, marketOrder.getTradableAmount());

    return placeKrakenOrder(orderBuilder.buildOrder());
  }
View Full Code Here


  }

  public KrakenOrderResponse placeKrakenLimitOrder(LimitOrder limitOrder) throws IOException {

    KrakenType type = KrakenType.fromOrderType(limitOrder.getType());
    KrakenOrderBuilder krakenOrderBuilder = KrakenStandardOrder.getLimitOrderBuilder(limitOrder.getCurrencyPair(), type, limitOrder.getLimitPrice().toString(), limitOrder.getTradableAmount());

    return placeKrakenOrder(krakenOrderBuilder.buildOrder());
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.kraken.dto.trade.KrakenStandardOrder.KrakenOrderBuilder

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.