BookStreamFactory.cs

This commit is contained in:
John Colvin committed 2025-11-18 11:56:46 -05:00
1 parent f6fe4194d2
commit 1d329760f0
1 file changed
+2 -2
@@ -158,7 +158,7 @@ public class BookStreamFactory : DataStreamFactory, IRecursiveDataStreamFactory
return compositeFactory.Create("ReplayFutureLiveBBOStream", new (string?, int?, object?)[] { ("contract", 0, sym) });
}
var streamParams = new BookStreamParams() {
SecurityType = secType,
Type = secType,
Asset = sym,
};
return mdClient?.Books(streamParams.GetSecurityFilter())
@@ -172,7 +172,7 @@ public class BookStreamFactory : DataStreamFactory, IRecursiveDataStreamFactory
}
public ViewStream? Create(BookStreamParams streamParams) {
var secType = streamParams.SecurityType;
var secType = streamParams.Type;
if (streamParams.Asset == "ES" && (!secType.HasValue || secType.Value == bts.api.SecurityType.Future) && compositeFactory is not null) {
return compositeFactory.Create("ReplayFutureLiveBBOStream", new (string?, int?, object?)[] { ("contract", 0, streamParams.Asset) });
}