return new LimitOrder(orderType, amount, currencyPair, id, null, price);
}
public static Trade adaptTrade(BittrexTrade trade, CurrencyPair currencyPair) {
OrderType orderType = trade.getOrderType().equalsIgnoreCase("BUY") ? OrderType.BID : OrderType.ASK;
BigDecimal amount = trade.getQuantity();
BigDecimal price = trade.getPrice();
Date date = BittrexUtils.toDate(trade.getTimeStamp());
final String tradeId = String.valueOf(trade.getId());
return new Trade(orderType, amount, currencyPair, price, date, tradeId);