Market data streams work now

This commit is contained in:
Taha committed 2023-10-16 00:01:29 -04:00
1 parent 140c0c4152
commit 33030b1212
46 files changed
+2367 -787

No files matched your search

@@ -1,29 +1,33 @@
using System;
using System.Threading.Tasks;
using BCG;
bts.utils.BTSNativeMethods.provide_command_line(new string[] { }, 0);
bts.utils.BTSNativeMethods.provide_command_line(args, args.Length);
mbts.config.Configuration.initialize();
bts.Log.Gen.info($"Starting DSPublisher");
Console.WriteLine("Starting DSPublisher...");
// SimpleTCPClient.start("127.0.0.1", 12345);
// Task.Delay(1000000000).Wait();
//TestPubliser.publish();
//TestPubliser.subscribe();
// TestPublisher ts = new TestPublisher(false);
// ts.keep_publishing(TimeSpan.FromSeconds(10));
// static async Task _run() {
// var login = "bts";
// var passwd = String.Empty;
// Console.WriteLine("Starting DSQA... ");
// // Log.notnull(login);
// // Log.notnull(passwd);
// // var service_ctx = bts.api.core.ServiceContext.create();
// await service_ctx.login(login, passwd);
// }
//Task.Run(async () => await _run());
_publish_stream();
void _publish_stream() {
BCG.ViewStream vs = new LiteralStream("x", "420.0");
BCG.ViewStream vs = new LiteralStream("x", "420.0");// new BBOStream();
//new BCG.MDStream();
ViewPublisher vpub = new ViewPublisher(String.Empty, new PubTableBroker(), vs);
vs.onChange += on_change;
}
while (true) {
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(1));
ViewStreamDatabase.instance.doWork();