void Poloniex.IOnTradeAction.OnTradeEvent(Poloniex.Trade trade) { OnTradeAction?.OnTrade(new Trade { CurrencyPair = trade.CurrencyPair, TradeId = trade.TradeId, TradeType = (TradeType)(int)trade.TradeType, Price = trade.Price, Quantity = trade.Quantity, UnixEpochTime = trade.UnixEpochTime, }); }