feat: Add BboPriceSummaryStream for Brandon Chen

This commit is contained in:
John Colvin committed 2025-11-15 12:45:08 -05:00
1 parent c365330b08
commit 4addb58743
12 files changed
+1030 -12

No files matched your search

@@ -4,6 +4,7 @@ using BCG;
using bts;
using bts.api.core;
using bts.BlueOrb;
using Bts.DataStreamCore;
using Bts.PubSub;
@@ -152,6 +153,14 @@ public static class DataStreamExtensions {
IBlueRowCollection? ApplyWrapper(EquatableKeyArrayWrapper groupKey, IBlueRowCollection groupRows) =>
apply(groupKey.Values, groupRows);
}
public static ViewStream RenameColumns(this ViewStream viewStream, bool includeUnmapped, params (string From, string To)[] columnMap) =>
new ColumnMaskStream(viewStream, includeUnmapped, columnMap);
public static IObservable<IDataPacket> TimeSeries(this IObservable<IDataPacket> source, int bufferSize, string timeColumn) =>
source.AsViewStream().TimeSeries(bufferSize, timeColumn).AsObservable();
public static ViewStream TimeSeries(this ViewStream source, int bufferSize, string timeColumn) =>
new TimeSeriesStream(source, bufferSize, timeColumn);
public static IDisposable Subscribe(this ViewStream viewStream, Action<IDataPacket> onChange) {
viewStream.onChange += OnChange;