docs: @Override
    public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
  
      Long from = null;
      Long to = null;
      if (params instanceof TradeHistoryParamsTimeSpan) {
        TradeHistoryParamsTimeSpan p = (TradeHistoryParamsTimeSpan) params;
        from = DateUtils.toMillisNullSafe(p.getStartTime());
        to = DateUtils.toMillisNullSafe(p.getEndTime());
      }
      return getTradeHistory(from, to);
    }