Skip to content

Commit

Permalink
Add missing data and map file init (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Mar 25, 2024
1 parent a1085fd commit 5962100
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions process.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"from datetime import datetime\n",
"from pathlib import Path\n",
"from QuantConnect import Globals\n",
"from QuantConnect.Util import Composer\n",
"from QuantConnect.Configuration import Config\n",
"from QuantConnect.Securities import SecurityDefinitionSymbolResolver"
]
Expand Down Expand Up @@ -52,6 +53,10 @@
"\n",
"output_file_directory.mkdir(parents=True, exist_ok=True)\n",
"\n",
"dataProvider = Composer.Instance.GetExportedValueByTypeName[IDataProvider](Config.Get('data-provider', 'DefaultDataProvider'))\n",
"mapFileResolver = Composer.Instance.GetExportedValueByTypeName[IMapFileProvider](Config.Get('map-file-provider', 'LocalZipMapFileProvider'))\n",
"mapFileResolver.Initialize(dataProvider)\n",
"\n",
"symbol_resolver = SecurityDefinitionSymbolResolver()"
]
},
Expand Down

0 comments on commit 5962100

Please sign in to comment.