feat: Add live bbo stream
This commit is contained in:
1 parent
aa740e786c
commit
2014931653
22 files changed
+792
-23
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user