Skip to content

Commit

Permalink
Merge pull request #6 from QuantConnect/bug-5-map-file-provider
Browse files Browse the repository at this point in the history
Correctly initialize map file provider
  • Loading branch information
Martin-Molinero authored Mar 7, 2023
2 parents 38cebad + 6d2d9b5 commit dacd240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions DataProcessing/DataProcessing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<ItemGroup>
<PackageReference Include="QuantConnect.Common" Version="2.5.*" />
<PackageReference Include="QuantConnect.Lean.Engine" Version="2.5.*" />
<PackageReference Include="QuantConnect.Logging" Version="2.5.*" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion DataProcessing/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using System.Globalization;
using System.IO;
using QuantConnect.Configuration;
using QuantConnect.DataSource;
using QuantConnect.Interfaces;
using QuantConnect.Logging;
using QuantConnect.Util;

Expand All @@ -42,6 +42,10 @@ public static int Main()
var sourceDirectory = new DirectoryInfo(Config.Get("raw-folder", "/raw"));
var destinationDirectory = new DirectoryInfo(Config.Get("temp-output-directory", "/temp-output-directory"));

var dataProvider = Composer.Instance.GetExportedValueByTypeName<IDataProvider>(Config.Get("data-provider", "DefaultDataProvider"));
var mapFileProvider = Composer.Instance.GetExportedValueByTypeName<IMapFileProvider>(Config.Get("map-file-provider", "LocalZipMapFileProvider"));
mapFileProvider.Initialize(dataProvider);

TiingoNewsConverter instance;
try
{
Expand Down

0 comments on commit dacd240

Please sign in to comment.