List all public trades made at Bitcointoyou Exchange.

@param currencyPair the trade currency pair
@return an array of {@link BitcointoyouPublicTrade}
@throws IOException
547635
BitcointoyouPublicTrade[] getBitcointoyouPublicTrades(CurrencyPair currencyPair)
      throws IOException {

    try {
      return getBitcointoyouPublicTrades(currencyPair, null, null);
    } catch (BitcointoyouException e) {
      throw new ExchangeException(e.getError());
    }
  }
250543
public OkCoinDepth getFuturesDepth(CurrencyPair currencyPair, FuturesContract prompt)
      throws IOException {
    return okCoin.getFuturesDepth(
        "1", OkCoinAdapters.adaptSymbol(currencyPair), prompt.getName().toLowerCase());
  }
354023
public boolean cancelAllOrders(String type, CurrencyPair currencyPair) throws IOException {

    GateioBaseResponse cancelAllOrdersResult =
        bter.cancelAllOrders(type, formatCurrencyPair(currencyPair), apiKey, signatureCreator);

    return handleResponse(cancelAllOrdersResult).isResult();
  }
1156759
public static Trades adaptTrades(WexTrade[] bTCETrades, CurrencyPair currencyPair) {

    List<Trade> tradesList = new ArrayList<>();
    long lastTradeId = 0;
    for (WexTrade bTCETrade : bTCETrades) {
      // Date is reversed order. Insert at index 0 instead of appending
      long tradeId = bTCETrade.getTid();
      if (tradeId > lastTradeId) {
        lastTradeId = tradeId;
      }
      tradesList.add(0, adaptTrade(bTCETrade, currencyPair));
    }
    return new Trades(tradesList, lastTradeId, TradeSortType.SortByID);
  }
260708
public OkCoinTrade[] getFuturesTrades(CurrencyPair currencyPair, FuturesContract prompt)
      throws IOException {
    return okCoin.getFuturesTrades(
        "1", OkCoinAdapters.adaptSymbol(currencyPair), prompt.getName().toLowerCase());
  }
470603
public function getCurrencies()
    {
        if (!isset($this->_issuerData))
            throw new Exception("Issuer must be selected first");
        if (!isset($this->_country))
            throw new Exception("Country must be selected first");
        foreach ($this->_issuerData["Countries"] as $country) {
            if ($this->_country == $country["CountryCode"]) {
                return $country["Currencies"];
            }
        }
        return array();
    }
760162
public static Trades adaptTrades(
      BitcoindeTradesWrapper bitcoindeTradesWrapper, CurrencyPair currencyPair) {

    List<Trade> trades = new ArrayList<>();
    long lastTradeId = 0;
    for (BitcoindeTrade bitcoindeTrade : bitcoindeTradesWrapper.getTrades()) {
      final long tid = bitcoindeTrade.getTid();
      if (tid > lastTradeId) {
        lastTradeId = tid;
      }
      trades.add(
          new Trade(
              null,
              bitcoindeTrade.getAmount(),
              currencyPair,
              bitcoindeTrade.getPrice(),
              DateUtils.fromMillisUtc(bitcoindeTrade.getDate() * 1000L),
              String.valueOf(tid)));
    }
    return new Trades(trades, lastTradeId, TradeSortType.SortByID);
  }
1313141
@Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
    return BitZAdapters.adaptTicker(
        getBitZTicker(BitZUtils.toPairString(currencyPair)), currencyPair);
  }
236802
public static Trades adaptTrades(CexIOTrade[] cexioTrades, CurrencyPair currencyPair) {

    List<Trade> tradesList = new ArrayList<>();
    long lastTradeId = 0;
    for (CexIOTrade trade : cexioTrades) {
      long tradeId = trade.getTid();
      if (tradeId > lastTradeId) {
        lastTradeId = tradeId;
      }
      // Date is reversed order. Insert at index 0 instead of appending
      tradesList.add(0, adaptTrade(trade, currencyPair));
    }
    return new Trades(tradesList, lastTradeId, TradeSortType.SortByID);
  }
125756
public BitZTicker getTicker(CurrencyPair currencyPair) throws IOException {
    BitZTickerResult result = bitz.getTicker(BitZUtils.toPairString(currencyPair));
    return result.getData();
  }
714110
@Override
  public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
    OkCoinFuturesTradeHistoryParams myParams = (OkCoinFuturesTradeHistoryParams) params;
    long orderId = myParams.getOrderId() != null ? Long.valueOf(myParams.getOrderId()) : -1;
    CurrencyPair currencyPair = myParams.getCurrencyPair();
    String date = myParams.getDate();
    String page = myParams.getPageNumber().toString();
    String pageLength = myParams.getPageLength().toString();
    FuturesContract reqFuturesContract = myParams.futuresContract;

    OkCoinFuturesTradeHistoryResult[] orderHistory =
        getFuturesTradesHistory(OkCoinAdapters.adaptSymbol(currencyPair), orderId, date);

    return OkCoinAdapters.adaptTradeHistory(orderHistory);
  }
945915
@Override
  public UserTrades getTradeHistory(TradeHistoryParams tradeHistoryParams) throws IOException {
    HuobiOrder[] openOrders = getHuobiTradeHistory(null);
    return HuobiAdapters.adaptTradeHistory(openOrders);
  }
307343
@Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {

    String marketName = DSXAdapters.currencyPairToMarketName(currencyPair);
    String accountType = null;
    try {
      if (args != null) {
        accountType = (String) args[0];
      }
    } catch (ArrayIndexOutOfBoundsException e) {
      // ignore, can happen if no argument given.
    }

    DSXTickerWrapper dsxTickerWrapper = getDSXTicker(marketName, accountType);

    // Adapt to XChange DTOs
    return DSXAdapters.adaptTicker(dsxTickerWrapper.getTicker(marketName), currencyPair);
  }
1369789
public static Trade adaptTrade(WexTrade bTCETrade, CurrencyPair currencyPair) {

    OrderType orderType =
        bTCETrade.getTradeType().equalsIgnoreCase("bid") ? OrderType.BID : OrderType.ASK;
    BigDecimal amount = bTCETrade.getAmount();
    BigDecimal price = bTCETrade.getPrice();
    Date date = DateUtils.fromMillisUtc(bTCETrade.getDate() * 1000L);

    final String tradeId = String.valueOf(bTCETrade.getTid());
    return new Trade(orderType, amount, currencyPair, price, date, tradeId);
  }
627191
public static Trades adaptTrades(List<BTCTurkTrades> btcTurkTrades, CurrencyPair currencyPair) {
    List<Trade> trades = new ArrayList<>();
    BigDecimal lastTradeId = new BigDecimal("0");
    for (BTCTurkTrades btcTurkTrade : btcTurkTrades) {
      if (btcTurkTrade.getTid().compareTo(lastTradeId) > 0) {
        lastTradeId = btcTurkTrade.getTid();
      }
      trades.add(adaptTrade(btcTurkTrade, currencyPair));
    }
    return new Trades(trades, lastTradeId.longValue(), Trades.TradeSortType.SortByID);
  }
1134240
public BitZTickerAll getTickerAll(CurrencyPair... currencyPairs) throws IOException {
    List<String> symbolList = new ArrayList<>(currencyPairs.length);
    Arrays.stream(currencyPairs)
        .forEach(currencyPair -> symbolList.add(BitZUtils.toPairString(currencyPair)));
    String symbols = symbolList.stream().collect(Collectors.joining(","));
    BitZTickerAllResult result = bitz.getTickerAll(symbols);
    return result.getData();
  }
1027073
@Override
	public List<CommerceCurrency> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}