refactor: Pass IMarketDataClient to streams via dependency injection
In general, the streams should not instantiate services, etc. themselves.
This commit is contained in:
1 parent
8766786109
commit
2d0df72f46
1 file changed
+1
-1
+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);
|
||||
|
||||
Reference in new issue
Block a user