Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Composer map file provider fetching #14

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading