docs: @Override
    public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
  
      Integer limit = 1000;
      long offset = 0;
  
      if (params instanceof TradeHistoryParamLimit) {
        limit = ((TradeHistoryParamLimit) params).getLimit();
      }
  
      if (params instanceof TradeHistoryParamOffset) {
        TradeHistoryParamOffset tradeHistoryParamOffset = (TradeHistoryParamOffset) params;
        offset = tradeHistoryParamOffset.getOffset();
      }
  
      String symbol = null;
      if (params instanceof TradeHistoryParamCurrencyPair) {
        CurrencyPair pair = ((TradeHistoryParamCurrencyPair) params).getCurrencyPair();
        symbol = HitbtcAdapters.adaptCurrencyPair(pair);
      }
  
      List<HitbtcOwnTrade> tradeHistoryRaw = getTradeHistoryRaw(symbol, limit, offset);
      return HitbtcAdapters.adaptTradeHistory(tradeHistoryRaw);
    }