コード例 #1
0
        /// <summary>
        /// Downloads the raw SEC data
        /// </summary>
        /// <param name="rawDestination">Destination where raw data will be written to</param>
        /// <param name="start">Start date</param>
        /// <param name="end">End date</param>
        public static void SECDataDownloader(string rawDestination, DateTime start, DateTime end)
        {
            var download = new SECDataDownloader();

            Log.Trace("SecDataDownloaderProgram.SecDataDownloader(): Begin downloading raw files from SEC website...");
            download.Download(rawDestination, start, end);
        }
コード例 #2
0
        /// <summary>
        /// Downloads and converts the data
        /// </summary>
        /// <param name="rawDestination">Destination where raw data will be written to</param>
        /// <param name="destination">Destination where processed data will be written to</param>
        /// <param name="start">Start date</param>
        /// <param name="end">End date</param>
        /// <param name="knownEquityFolder">Folder to search for known equities, i.e. equities we will download data for</param>
        public static void SECDataDownloader(string rawDestination, string destination, DateTime start, DateTime end, string knownEquityFolder)
        {
            var download = new SECDataDownloader();

            Log.Trace("SecDataDownloaderProgram.SecDataDownloader(): Begin downloading raw files from SEC website...");
            download.Download(rawDestination, start, end);

            var converter = new SECDataConverter(rawDestination, destination, knownEquityFolder);

            Log.Trace("SecDataDownloaderProgram.SecDataDownloader(): Begin parsing raw files from disk...");
            converter.Process(start, end);
        }