Skip to content

Commit

Permalink
Fix Composer map file provider fetching (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Mar 5, 2024
1 parent c7a791c commit 98cdd83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QuantConnect.Wolverine.Tests/WolverineBrokerageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void CanLogonAfterLogout()

private WolverineBrokerage CreateBrokerage()
{
return new WolverineBrokerage(_algorithm, _job, _orderProvider, _fixConfiguration, new SecurityProvider(), TestGlobals.MapFileProvider, true);
return new WolverineBrokerage(_algorithm, _job, _orderProvider, _fixConfiguration, new SecurityProvider(), true);
}
}
}
3 changes: 1 addition & 2 deletions QuantConnect.Wolverine/WolverineBrokerage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ public WolverineBrokerage(
IOrderProvider orderProvider,
FixConfiguration fixConfiguration,
ISecurityProvider securityProvider,
IMapFileProvider mapFileProvider,
bool logFixMessages) : base("Wolverine")
{
_job = job;
_algorithm = algorithm;
_securityProvider = securityProvider;
_orderProvider = orderProvider;

var mapFileProvider = Composer.Instance.GetPart<IMapFileProvider>();
_symbolMapper = new WolverineSymbolMapper(mapFileProvider);

_fixBrokerageController = new FixBrokerageController();
Expand Down
2 changes: 0 additions & 2 deletions QuantConnect.Wolverine/WolverineBrokerageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* limitations under the License.
*/

using QuantConnect.Util;
using QuantConnect.Packets;
using QuantConnect.Interfaces;
using QuantConnect.Securities;
Expand Down Expand Up @@ -101,7 +100,6 @@ public override IBrokerage CreateBrokerage(LiveNodePacket job, IAlgorithm algori
algorithm.Transactions,
fixConfiguration,
algorithm.Portfolio,
Composer.Instance.GetExportedValueByTypeName<IMapFileProvider>(Config.Get("map-file-provider", "QuantConnect.Data.Auxiliary.LocalDiskMapFileProvider")),
logFixMessages);

return instance;
Expand Down

0 comments on commit 98cdd83

Please sign in to comment.