/// <summary>
        /// Converts Smart Insider data
        /// </summary>
        public static void SmartInsiderConverter(DateTime date, string sourceDirectory, string destinationDirectory, string processedFileDirectory = null)
        {
            // Default to the Data Folder Smart Insider data directory if no argument is passed
            if (string.IsNullOrWhiteSpace(processedFileDirectory))
            {
                processedFileDirectory = Path.Combine(Globals.DataFolder, "alternative", "smartinsider");
            }

            var converter = new SmartInsiderConverter(
                new DirectoryInfo(sourceDirectory),
                new DirectoryInfo(destinationDirectory),
                new DirectoryInfo(processedFileDirectory));

            converter.Convert(date);
        }
예제 #2
0
        /// <summary>
        /// Converts Smart Insider data
        /// </summary>
        public static void SmartInsiderConverter(DateTime date, string sourceDirectory, string destinationDirectory)
        {
            var converter = new SmartInsiderConverter(new DirectoryInfo(sourceDirectory), new DirectoryInfo(destinationDirectory));

            converter.Convert(date);
        }