예제 #1
0
        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
            });
        }
예제 #2
0
 private MagicBoxConfig SelectConfig(EconomicEvent eventx)
 {
     return eventx.IsSpeechOrMeeting ? speechCfg : commonCfg;
 }
예제 #3
0
 private MagicBoxConfig SelectConfig(EconomicEvent eventx)
 {
     return(eventx.IsSpeechOrMeeting ? speechCfg : commonCfg);
 }