@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } BitstampUserTransaction[] txs = getBitstampUserTransactions(limit, offset, sort == null ? null : sort.toString()); return BitstampAdapters.adaptFundingHistory(Arrays.asList(txs)); } }
@Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { TradeHistoryParamsSorted.Order order = TradeHistoryParamsSorted.Order.asc; Integer limit = 1000; int offset = 0; if (params instanceof TradeHistoryParamOffset) { offset = Math.toIntExact(((TradeHistoryParamOffset) params).getOffset()); } if (params instanceof TradeHistoryParamLimit) { limit = ((TradeHistoryParamLimit) params).getLimit(); } if (params instanceof TradeHistoryParamsSorted) { order = ((TradeHistoryParamsSorted) params).getOrder(); } CoinmateTransactionHistory coinmateTradeHistory = getCoinmateTradeHistory(offset, limit, CoinmateAdapters.adaptSortOrder(order)); return CoinmateAdapters.adaptTransactionHistory(coinmateTradeHistory); }
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException { TradeHistoryParamsSorted.Order order = TradeHistoryParamsSorted.Order.asc; Integer limit = 1000; int offset = 0; if (params instanceof TradeHistoryParamOffset) { offset = Math.toIntExact(((TradeHistoryParamOffset) params).getOffset()); } if (params instanceof TradeHistoryParamLimit) { limit = ((TradeHistoryParamLimit) params).getLimit(); } if (params instanceof TradeHistoryParamsSorted) { order = ((TradeHistoryParamsSorted) params).getOrder(); } CoinmateTransactionHistory coinmateTransactionHistory = getCoinmateTransactionHistory(offset, limit, CoinmateAdapters.adaptSortOrder(order)); return CoinmateAdapters.adaptFundingHistory(coinmateTransactionHistory); }
sort = ((TradeHistoryParamsSorted) params).getOrder(); } else { sort = null;
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamCurrencyPair) { currencyPair = ((TradeHistoryParamCurrencyPair) params).getCurrencyPair(); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } CryptonitUserTransaction[] txs = getCryptonitUserTransactions(limit, offset, sort == null ? null : sort.toString()); return CryptonitAdapters.adaptFundingHistory(Arrays.asList(txs)); } }
/** Required parameter types: {@link TradeHistoryParamPaging#getPageLength()} */ @Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamCurrencyPair) { currencyPair = ((TradeHistoryParamCurrencyPair) params).getCurrencyPair(); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } BitstampUserTransaction[] txs = getBitstampUserTransactions( limit, currencyPair, offset, sort == null ? null : sort.toString()); return BitstampAdapters.adaptTradeHistory(txs); }
/** Required parameter types: {@link TradeHistoryParamPaging#getPageLength()} */ @Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamCurrencyPair) { currencyPair = ((TradeHistoryParamCurrencyPair) params).getCurrencyPair(); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } CryptonitUserTransaction[] txs = getCryptonitUserTransactions( limit, currencyPair, offset, sort == null ? null : sort.toString()); return CryptonitAdapters.adaptTradeHistory(txs); }
TradeHistoryParamsSorted.Order order = ((TradeHistoryParamsSorted) params).getOrder(); if (order != null) { if (order.equals(TradeHistoryParamsSorted.Order.asc)) sort = "asc";
if (params instanceof TradeHistoryParamsSorted) { TradeHistoryParamsSorted sort = (TradeHistoryParamsSorted) params; direction = sort.getOrder() == Order.asc ? 1 : 2;
if (params instanceof TradeHistoryParamsSorted) { order = ((TradeHistoryParamsSorted) params).getOrder().equals(TradeHistoryParamsSorted.Order.desc) ? "DESC" : "ASC";
TradeHistoryParamsSorted.Order order = tradeHistoryParamsSorted.getOrder(); if (order != null) sort =
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } BitstampUserTransaction[] txs = getBitstampUserTransactions(limit, offset, sort == null ? null : sort.toString()); return BitstampAdapters.adaptFundingHistory(Arrays.asList(txs)); } }
@Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { TradeHistoryParamsSorted.Order order = TradeHistoryParamsSorted.Order.asc; Integer limit = 1000; int offset = 0; if (params instanceof TradeHistoryParamOffset) { offset = Math.toIntExact(((TradeHistoryParamOffset) params).getOffset()); } if (params instanceof TradeHistoryParamLimit) { limit = ((TradeHistoryParamLimit) params).getLimit(); } if (params instanceof TradeHistoryParamsSorted) { order = ((TradeHistoryParamsSorted) params).getOrder(); } CoinmateTransactionHistory coinmateTradeHistory = getCoinmateTradeHistory(offset, limit, CoinmateAdapters.adaptSortOrder(order)); return CoinmateAdapters.adaptTransactionHistory(coinmateTradeHistory); }
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException { TradeHistoryParamsSorted.Order order = TradeHistoryParamsSorted.Order.asc; Integer limit = 1000; int offset = 0; if (params instanceof TradeHistoryParamOffset) { offset = Math.toIntExact(((TradeHistoryParamOffset) params).getOffset()); } if (params instanceof TradeHistoryParamLimit) { limit = ((TradeHistoryParamLimit) params).getLimit(); } if (params instanceof TradeHistoryParamsSorted) { order = ((TradeHistoryParamsSorted) params).getOrder(); } CoinmateTransactionHistory coinmateTransactionHistory = getCoinmateTransactionHistory(offset, limit, CoinmateAdapters.adaptSortOrder(order)); return CoinmateAdapters.adaptFundingHistory(coinmateTransactionHistory); }
/** Required parameter types: {@link TradeHistoryParamPaging#getPageLength()} */ @Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; TradeHistoryParamsSorted.Order sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params).getPageLength()); } if (params instanceof TradeHistoryParamCurrencyPair) { currencyPair = ((TradeHistoryParamCurrencyPair) params).getCurrencyPair(); } if (params instanceof TradeHistoryParamOffset) { offset = ((TradeHistoryParamOffset) params).getOffset(); } if (params instanceof TradeHistoryParamsSorted) { sort = ((TradeHistoryParamsSorted) params).getOrder(); } BitstampUserTransaction[] txs = getBitstampUserTransactions( limit, currencyPair, offset, sort == null ? null : sort.toString()); return BitstampAdapters.adaptTradeHistory(txs); }