private static UserTrade adaptUserTrade(ANXTradeResult t) {
BigDecimal tradedCurrencyFillAmount = t.getTradedCurrencyFillAmount();
CurrencyPair currencyPair = adaptCurrencyPair(t.getCurrencyPair());
BigDecimal price = t.getSettlementCurrencyFillAmount().divide(tradedCurrencyFillAmount, PRICE_SCALE, BigDecimal.ROUND_HALF_EVEN);
OrderType type = adaptSide(t.getSide());
// for fees, getWalletHistory should be used.
return new UserTrade(type, tradedCurrencyFillAmount, currencyPair, price, t.getTimestamp(), t.getTradeId(), t.getOrderId(), null, null);
}