refactor: Pass IMarketDataClient to streams via dependency injection

In general, the streams should not instantiate services, etc. themselves.
This commit is contained in:
John Colvin committed 2025-11-19 14:35:12 -05:00
1 parent 8766786109
commit 2d0df72f46
1 file changed
+1 -1
@@ -5,7 +5,7 @@
using Spark.Api.MarketData;
[DataStreamUserRespresentation("LiveFuturesContractStream")]
[DataStreamUserRespresentation(false)]
public class LiveFuturesContractStream : ViewStream {
public LiveFuturesContractStream(string target, IMarketDataClient mdClient) {
var fc = new ContractUtils.FutureContract(target);