@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);
  }
@ 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 ) ; }
Required parameter types: {@link TradeHistoryParamPaging#getPageLength()}