private void AddSingleMagicBox(List <MagicBoxOrder> mgcBoxOrderList, IGrouping <DateTime, EconomicEvent> eventGroup) { EconomicEvent singleEvent = eventGroup.Single(); mgcBoxOrderList.Add(new MagicBoxOrder { Symbol = singleEvent.Currency, LotSize = 1, Config = SelectConfig(singleEvent), NewsTime = singleEvent.DateTime }); }
private MagicBoxConfig SelectConfig(EconomicEvent eventx) { return eventx.IsSpeechOrMeeting ? speechCfg : commonCfg; }
private MagicBoxConfig SelectConfig(EconomicEvent eventx) { return(eventx.IsSpeechOrMeeting ? speechCfg : commonCfg); }