public Map<Long, DSXTransHistoryResult> getTransHistory(DSXTransHistoryParams params)
throws ExchangeException, IOException {
Integer count = params.getLimit();
Long startId = nullSafeToLong(params.getStartId());
Long endId = nullSafeToLong(params.getEndId());
Long startTime = nullSafeUnixTime(params.getStartTime());
Long endTime = nullSafeUnixTime(params.getEndTime());
DSXAuthenticatedV2.SortOrder sort =
params.getOrder().equals(TradeHistoryParamsSorted.Order.desc)
? DSXAuthenticatedV2.SortOrder.DESC
: DSXAuthenticatedV2.SortOrder.ASC;
DSXTransHistoryResult.Status status = params.getStatus();
DSXTransHistoryResult.Type type = params.getType();
Currency c = params.getCurrency();
String currency = c == null ? null : c.getCurrencyCode();
return getDSXTransHistory(
count, startId, endId, sort, startTime, endTime, type, status, currency);
}
}