示例#1
0
            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,
示例#2
0
            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
                });