virtual protected void SetSourceProperty(Future fut, TradeInfo info) { if (info.IsMurex) { var key = fut.Contract.TickerSymbol + " " + info.Maturity; if (fut.GetProperty(TradeImportHelper.MurexMaturity) == null) { fut.SetProperty(TradeImportHelper.MurexMaturity, fut.Contract.TickerSymbol + " " + info.Maturity); Env.Current.Trade.SaveProduct(fut); } } else if (fut.GetProperty(TradeImportHelper.ImagineMaturity) == null) { fut.SetProperty(TradeImportHelper.ImagineMaturity, info.Symbol); Env.Current.Trade.SaveProduct(fut); } }
protected override void SetSourceProperty(Future fut, TradeInfo info) { if (info.IsMurex) { var key = fut.Contract.TickerSymbol + " " + info.Maturity + " " + info.PutCall + info.Strike; if (string.IsNullOrEmpty(fut.GetProperty(TradeImportHelper.MurexMaturity))) { fut.SetProperty(TradeImportHelper.MurexMaturity, fut.Contract.TickerSymbol + " " + info.Maturity); Env.Current.Trade.SaveProduct(fut); } } else if (string.IsNullOrEmpty(fut.GetProperty(TradeImportHelper.ImagineMaturity))) { fut.SetProperty(TradeImportHelper.ImagineMaturity, info.Symbol); Env.Current.Trade.SaveProduct(fut); } }