Пример #1
0
        public void Export()
        {
            Data.DataLayer dl = new Data.DataLayer();
            dl.SaveOptionPricesToBOSS(valuationDate);

            UpdateStatus("Valid option prices have been saved to BOSS");
        }
Пример #2
0
        public void Save()
        {
            Data.DataLayer dl = new Data.DataLayer();
            dl.DeleteOptionPrices(valuationDate);

            foreach (BOSSOption o in options)
            {
                dl.SaveOptionPrice(o, valuationDate);
            }

            UpdateStatus(String.Format("Saved {0} option valuations", options.Count));
        }
Пример #3
0
        public void Load()
        {
            Data.DataLayer dl = new Data.DataLayer();
            options = dl.GetBOSSOptionsToPrice(valuationDate);
            UpdateStatus(String.Format("Loaded {0} options from BOSS", options.Count));

            foreach (BOSSOption o in options)
            {
                o.CalculateOptionValue(valuationDate);
            }
            UpdateStatus(String.Format("Valued {0} options from BOSS", options.Count));
        }