Examples of ExchangeException


Examples of com.xeiam.xchange.ExchangeException

    try {
      Map<String, PoloniexCurrencyInfo> currencyInfo = poloniex.getCurrencyInfo(command);
      return currencyInfo;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      Map<String, PoloniexMarketData> marketData = poloniex.getTicker(command);
      return marketData;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }

  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    HashMap<String, PoloniexMarketData> marketData;
    try {
      marketData = poloniex.getTicker(command);
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }

    PoloniexMarketData data = marketData.get(pairString);

    return new PoloniexTicker(data, currencyPair);
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      PoloniexDepth depth = poloniex.getOrderBook(command, pairString);
      return depth;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      PoloniexDepth limitDepth = poloniex.getOrderBook(command, pairString, depth);
      return limitDepth;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      Map<String, PoloniexDepth> depths = poloniex.getAllOrderBooks(command, "all", null);
      return depths;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      Map<String, PoloniexDepth> depths = poloniex.getAllOrderBooks(command, "all", depth);
      return depths;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      PoloniexPublicTrade[] trades = poloniex.getTrades(command, pairString, null, null);
      return trades;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

    try {
      PoloniexPublicTrade[] trades = poloniex.getTrades(command, pairString, startTime, endTime);
      return trades;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeException

      PoloniexTradeResponse response =
          poloniex.buy(apiKey, signatureCreator, String.valueOf(nextNonce()), limitOrder.getTradableAmount().toPlainString(), limitOrder.getLimitPrice().toPlainString(), PoloniexUtils
              .toPairString(limitOrder.getCurrencyPair()));
      return response;
    } catch (PoloniexException e) {
      throw new ExchangeException(e.getError());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.