Example #1
0
        public static OptionsSearchService GetOptionsSearchService()
        {
            var symbolData = new QuestradeSymbolDataConfig();

            if (symbolData.FileExist)
            {
                symbolData.Load();
            }

            if (OptionsSearchService != null)
            {
                return(OptionsSearchService);
            }
            OptionsSearchService = new OptionsSearchService(GazerVM.GetQuestradeAccountManager());
            OptionsSearchService.SetIdsList(symbolData.Data.Where(sd => sd.m_hasOptions).Select(sd => sd.m_symbolId).ToList());

            return(OptionsSearchService);
        }
Example #2
0
 public QuestradeOptionsConfig(OptionsSearchService optionsSearchService)
 {
     m_optionsSearchService = optionsSearchService;
 }