private static Trade SaveFutureTrade(Future product, Market market, Dictionary<string, dynamic> importRow) { var trade = CreateProductTrade(product, importRow); trade.Price = importRow["Trade Price"]; trade.BuySellFlag = importRow["Buy Sell"] == "Buy" ? BuySell.Buy : BuySell.Sell ; trade.Quantity = importRow["Qty"]; var templateProvider = Template.Find(product.GetType().Name); if (templateProvider != null) templateProvider.FillTrade(trade, market); else trade.SettlementDate = trade.GetTradingDay(true); if (finalSaveTrade(trade)) return null; return trade; }