Package com.xeiam.xchange.okcoin.dto.trade

Examples of com.xeiam.xchange.okcoin.dto.trade.OkCoinTradeResult


    long id = Long.valueOf(orderId);

    for (int i = 0; i < exchangeSymbols.size(); i++) {
      CurrencyPair symbol = exchangeSymbols.get(i);
      try {
        OkCoinTradeResult cancelResult = cancelOrder(id, OkCoinAdapters.adaptSymbol(symbol));

        if (id == cancelResult.getOrderId()) {
          ret = true;
        }
        break;
      } catch (OkCoinException e) {
        if (e.getErrorCode() == 10009) {
View Full Code Here


    super(exchangeSpecification);
  }

  public OkCoinTradeResult trade(String symbol, String type, String rate, String amount) throws IOException {

    OkCoinTradeResult tradeResult = okCoin.trade(partner, symbol, type, rate, amount, signatureCreator);
    return returnOrThrow(tradeResult);
  }
View Full Code Here

    return returnOrThrow(tradeResult);
  }

  public OkCoinTradeResult cancelOrder(long orderId, String symbol) throws IOException {

    OkCoinTradeResult tradeResult = okCoin.cancelOrder(partner, orderId, symbol, signatureCreator);
    return returnOrThrow(tradeResult);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.okcoin.dto.trade.OkCoinTradeResult

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.