code: public Map<Long, DSXTradeHistoryResult> getDSXTradeHistory(
        Integer count,
        Long fromId,
        Long endId,
        DSXAuthenticatedV2.SortOrder order,
        Long since,
        Long end,
        String pair)
        throws IOException {
  
      DSXTradeHistoryReturn dsxTradeHistory =
          dsx.tradeHistory(
              apiKey,
              signatureCreator,
              exchange.getNonceFactory(),
              count,
              fromId,
              endId,
              order,
              since,
              end,
              pair);
      String error = dsxTradeHistory.getError();
      if (MSG_NO_TRADES.equals(error)) {
        return Collections.emptyMap();
      }
  
      checkResult(dsxTradeHistory);
      return dsxTradeHistory.getReturnValue();
    }
docs: Get Map of trade history from DSX exchange. All parameters are nullable
  
  @param count Number of trades to display
  @param fromId ID of the first trade of the selection
  @param endId ID of the last trade of the selection
  @param order Order in which transactions shown. Possible values: «asc» — from first to last,
  «desc» — from last to first. Default value is «desc»
  @param since Time from which start selecting trades by trade time(UNIX time). If this value is
  not null order will become «asc»
  @param end Time to which start selecting trades by trade time(UNIX time). If this value is not
  null order will become «asc»
  @param pair Currency pair
  @return Map of trade history result
  @throws IOException