Package com.xeiam.xchange.bitvc.dto.trade

Examples of com.xeiam.xchange.bitvc.dto.trade.BitVcPlaceOrderResult


  public BitVcPlaceOrderResult placeBitVcLimitOrder(OrderType type, int coinType, BigDecimal price, BigDecimal amount) throws IOException {

    final String method = type == BID ? "buy" : "sell";

    final BitVcPlaceOrderResult result;

    result = bitvc.placeLimitOrder(accessKey, amount.toPlainString(), coinType, nextCreated(), price.toPlainString(), digest, method);
    return result;
  }
View Full Code Here


  public BitVcPlaceOrderResult placeBitVcMarketOrder(OrderType type, int coinType, BigDecimal amount) throws IOException {

    final String method = type == BID ? "buy_market" : "sell_market";

    final BitVcPlaceOrderResult result;

    result = bitvc.placeMarketOrder(accessKey, amount.toPlainString(), coinType, nextCreated(), digest, method);

    return result;
  }
View Full Code Here

  }

  @Override
  public String placeMarketOrder(MarketOrder marketOrder) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {

    BitVcPlaceOrderResult result = placeBitVcMarketOrder(marketOrder.getType(), coinTypes.get(marketOrder.getCurrencyPair()), marketOrder.getTradableAmount());
    return BitVcAdapters.adaptPlaceOrderResult(result);
  }
View Full Code Here

  }

  @Override
  public String placeLimitOrder(LimitOrder limitOrder) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {

    BitVcPlaceOrderResult result = placeBitVcLimitOrder(limitOrder.getType(), coinTypes.get(limitOrder.getCurrencyPair()), limitOrder.getLimitPrice(), limitOrder.getTradableAmount());
    return BitVcAdapters.adaptPlaceOrderResult(result);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.bitvc.dto.trade.BitVcPlaceOrderResult

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.