feat: Add live bbo stream

This commit is contained in:
John Colvin committed 2025-11-19 10:33:31 -05:00
1 parent aa740e786c
commit 2014931653
22 files changed
+792 -23

No files matched your search

+2
View File
@@ -15,6 +15,7 @@
using System.Reactive.Linq;
using System.Threading.Tasks;
using System.Threading;
using bts.md;
class Program {
[Flags]
@@ -39,6 +40,7 @@
PubSubConfig.SetGlobalConfig(Log.notnull(opts.PubSub));
var service_ctx = ServiceContext.create(opts.sparkd);
await service_ctx.login(opts.user, opts.password);
PrimitiveManager.SetMarketDataClient(new MarketDataClient(new(TimeSpan.FromSeconds(0.5))));
var sync = new bts.websocket_core.WebsocketDataSync(service_ctx);
var gwy = new bts.websocket_core.WebsocketConnectionGateway();