for (int i = 0; i < orders.length; i++) {
ItBitOrder itBitOrder = orders[i];
String instrument = itBitOrder.getInstrument();
OrderType orderType = itBitOrder.getSide().equals("buy") ? OrderType.BID : OrderType.ASK;
CurrencyPair currencyPair = new CurrencyPair(instrument.substring(0, 3), instrument.substring(3, 6));
Date timestamp = parseDate(itBitOrder.getCreatedTime());
trades.add(new UserTrade(orderType, itBitOrder.getAmount(), currencyPair, itBitOrder.getPrice(), timestamp, itBitOrder.getId(), itBitOrder.getId(), null, null));
}