public NDAXTrade ToExchangeTrade() { var isBuy = TakerSide == TakerSide.Buy; return(new NDAXTrade() { Amount = Quantity, Id = TradeId.ToStringInvariant(), Price = Price, IsBuy = isBuy, Timestamp = TradeTime.UnixTimeStampToDateTimeMilliseconds(), Flags = isBuy ? ExchangeTradeFlags.IsBuy : default,
public ExchangeTrade ToExchangeTrade() { var isBuy = Side.Equals("buy", StringComparison.InvariantCultureIgnoreCase); return(new ExchangeTrade() { Amount = Quantity, Id = TradeId.ToStringInvariant(), Price = Price, IsBuy = isBuy, Timestamp = TradeTime.UnixTimeStampToDateTimeMilliseconds(), Flags = isBuy ? ExchangeTradeFlags.IsBuy : default });