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 #9

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
3 changes: 1 addition & 2 deletions QuantConnect.RBI.Tests/RBIBrokerageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ public void CancelOrder(string ticker, decimal quantity, decimal price)

private RBIBrokerage CreateBrokerage()
{
return new RBIBrokerage(_fixConfiguration, _orderProvider, _algorithm, _job, TestGlobals.MapFileProvider,
new SecurityProvider(), false);
return new RBIBrokerage(_fixConfiguration, _orderProvider, _algorithm, _job, new SecurityProvider(), false);
}
}
}
2 changes: 1 addition & 1 deletion QuantConnect.RBI/RBIBrokerage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public RBIBrokerage(
IOrderProvider orderProvider,
IAlgorithm algorithm,
LiveNodePacket job,
IMapFileProvider mapFileProvider,
ISecurityProvider securityProvider,
bool logFixMessages) : base("RBI")
{
_algorithm = algorithm;
_job = job;
_orderProvider = orderProvider;

var mapFileProvider = Composer.Instance.GetPart<IMapFileProvider>();
var symbolMapper = new RBISymbolMapper(mapFileProvider);

_fixBrokerageController = new FixBrokerageController();
Expand Down
2 changes: 0 additions & 2 deletions QuantConnect.RBI/RBIBrokerageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ public override IBrokerage CreateBrokerage(LiveNodePacket job, IAlgorithm algori
algorithm.Transactions,
algorithm,
job,
Composer.Instance.GetExportedValueByTypeName<IMapFileProvider>(Config.Get("map-file-provider",
"QuantConnect.Data.Auxiliary.LocalDiskMapFileProvider")),
algorithm.Portfolio,
logFixMessages
);
Expand Down
Loading