Commit Graph
14295 Commits
Author SHA1 Message Date
John Colvin 54cf46e926 deploy: Add pubsub and md-publisher services to compose.yaml 2025-08-24 13:46:49 -04:00
John Colvin 116778a0cc refactor: Model config profiles after dotnet appsettings
Namely, in DataStreamPublisher and PubSubServer. This is part of a
broader paradigm shift towards dotnet factory pattern.

https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-guidelines

* Rename Configurations/<name>.json -> appsettings.<name>.json
* Move reusable startup code into new Bts.Extensions.Hosting proj
2025-08-24 13:46:49 -04:00
John Colvin f7b835997e Add ErrorChanged event to propagate DataStream exceptions 2025-08-24 13:46:49 -04:00
John Colvin c920c6f3a9 fix build: Fix Spark build after making config init async 2025-08-24 13:46:49 -04:00
John Colvin 36de4d1578 refactor: Tweak SparkCoreServices to synchronize Configuration.init globally 2025-08-24 13:46:49 -04:00
John Colvin 0571cb40a0 refactor: Change Configuration.initialize to be async 2025-08-24 13:46:48 -04:00
John Colvin 1ca6acdd23 vscode: Add 'isSparkApiEnabled' input to launch.json 2025-08-24 13:46:48 -04:00
John Colvin f4f3c881db Remove unused PubSubConfig props 2025-08-24 13:46:48 -04:00
John Colvin 36e150f6c7 Capture OperationCanceledException (instead of TaskCanceledException)
The former is the base class for the latter, so this will widen the umbrella to catch a few corner cases
that would otherwise been handled by the generic "Exception" catch block. One corner case I know
of is when an op is canceled via "CancellationToken.ThrowIfCancellationRequested". In that case,
an OperationCanceledException is thrown (not a TaskCanceledException).

https://stackoverflow.com/questions/34359129/operationcanceledexception-vs-taskcanceledexception-when-task-is-canceled
2025-08-24 13:46:48 -04:00
John Colvin f98b435e0b Fix dsqa config json 2025-08-24 13:46:48 -04:00
John Colvin dce4c5f543 fix: Always call 'handle_internal_pubs' in PubSubMessageReactor main loop 2025-08-24 13:46:48 -04:00
John Colvin d4d696e135 Fix mismatched types in PubSubServerTagStatsStream schema 2025-08-24 13:46:48 -04:00
John Colvin bb818d9dcc Add DataStreamPublisher service modules designed for Dependency Injection
* Change DataStreamPublisher json fields to match cs class property names verbatim
* Rename Publishers -> PublisherNodes in DataStreamPublisherConfig
2025-08-24 13:46:48 -04:00
John Colvin 14e838de6a refactor: Decouple ViewPublisher from IPubTableBroker impl 2025-08-24 13:46:48 -04:00
John Colvin 6fe35e2692 Add PubSub service modules designed for Dependency Injection
* Get rid of JsonPropertyName attributes in PubSubConfig
  - The Dependency Injection framework (based around dotnet ApplicationBuilder)
    does not support this attribute, and maps property names verbatim to json fields.

* Change PubSubServer json fields to match cs class property names verbatim
2025-08-24 13:46:48 -04:00
John Colvin 08f9784ed0 refactor: Decouple RemoteQueryManager from IManagedSubscriber, IPubTableBroker impl 2025-08-24 13:46:48 -04:00
John Colvin bde4ee6308 refactor: Decouple ManagedSubscriber from ISubscriberCore impl 2025-08-24 13:46:48 -04:00
John Colvin 03116a2973 refactor: Only support 1 tag type in IPubSubServerTagHandler 2025-08-24 13:46:48 -04:00
John Colvin d0d6d587d7 refactor: Decouple PubTableBroker from IPublisherCore impl
Reference interface rather than the PublisherCore impl.
2025-08-24 13:46:48 -04:00
John Colvin 765e45d95a fix: Dispose market data sub in various md streams 2025-08-24 13:46:48 -04:00
John Colvin cd833ceb36 cleanup: Remove unused pubsub tag handler code
* Removed 'IPubSubServerTagHandler.register'
  - All implementations of this function were empty
* Removed 'IPubSubServerTagHandler.supportedTagTypes'
  - This property wasn't referenced anywhere
* Remove IWorker inheritance from IPubSubServerTagHandler
  - No reason these interfaces have to be tied together
2025-08-24 13:46:47 -04:00
John Colvin a148a03175 refactor: Rename CloudStreamManager.cs -> RemoteQueryManager.cs
This matches the file name
2025-08-24 13:46:47 -04:00
John Colvin 338edfd732 Change pub sub schema prefix 'bluto://' -> 'bts-cloud://'
In config json files (not actual code change)
2025-08-24 13:46:47 -04:00
John Colvin 2a9ca60654 chore: Fix typos in log msgs
* Bad string interopolation syntax
2025-08-24 13:46:47 -04:00
John Colvin 03a677df4c vscode: Add DataStreamPublisher debug cfg to skip build 2025-08-24 13:46:47 -04:00
John Colvin 07b32e4da4 Add spark service modules designed for Dependency Injection 2025-08-24 13:46:47 -04:00
John Colvin 3b1b74a1bf cleanup: Fix benign typos in build scripts
Change BUILD_SPARK_PY var name to BUILD_PY (these scripts build other
projects than 'spark').
2025-08-24 13:46:47 -04:00
John Colvin 645a447248 fix build (warn): Only use Registry on windows 2025-08-24 13:46:47 -04:00
John Colvin 4580a1af21 cleanup: Fix numerous build warnings in DataStreamSuite
Nearly all warnings were due to nullability issues, since the concept of
nullable reference types did not exist when the DataStream code was
originally written.

* PubSubClientMessage
  - Normalize indentation/whitespace
  - Fix some typos
  - Address nullability issues to fix build warnings
  - Modernize code

* Compression related files
  - ZipEntry
  - ZipFile
  - ZipInputStream
  - TarHeader

* RemoteMessage
  - make 'message' nullable to resolve warnings elsewhere (in calling code)

* PubSubSingleTagStateEvent.cs
* PubSubMessageReactor
* PubSubState
* SystemHeartbeatPublisher
* SystemStatsPublisher
* SingleTagData
* ManagedTCPMessageHub
* PubsubDeserializationController
* PublisherCore
* InflaterHuffmanTree
* AsyncTCPConnection_APM
* ThreadSafeQueue
* ManagedSubscriber
* SubscriberCore
* PubSubServerManagedTCPConnection
* AsyncTCPConnection_APM
* SuperMapStream
* MapStream
* TradeBarsStream
2025-08-24 13:46:47 -04:00
John Colvin 85a68a14c6 cleanup: Disable nullability warnings
* BZip2InputStream
* TarInputStream
* Inflater
* InflaterDynHeader
* BZip2OutputStream
* DeflaterHuffman
* ParallelJoinTest
2025-08-24 13:46:47 -04:00
John Colvin 3476bbca02 cleanup: Modernize PubSubRoute code, json parsing 2025-08-24 13:46:47 -04:00
John Colvin fdb1811f03 cleanup: Remove unused DateTime grammar from exp parser 2025-08-24 13:46:47 -04:00
John Colvin 7db9f9368b chore: Add json facilities for DataStream websocket api 2025-08-24 13:46:47 -04:00
John Colvin 983eb24584 refactor: Add handy WebsocketExtensions
* IsSocketStateOpen
* IsClosedProperly
2025-08-24 13:46:47 -04:00
John Colvin 312aa9c669 chore: Add JsonRpc types for websocket paradigm 2025-08-24 13:46:46 -04:00
John Colvin a11b0959bb cleanup: Remove empty file (clearly added by accident) 2025-08-24 13:46:46 -04:00
John Colvin 4c6702b506 editorconfig: Use standard c# capitalization rules
* Use 'PascalCase' for public members (instead of 'snake_case')
* Use 'camelCase' for private members (instead of '_snake_case')
2025-08-24 13:46:46 -04:00
John Colvin e0e0c408a5 Add generic ViewStream, BlueRow types/interfaces 2025-08-24 13:46:46 -04:00
John Colvin db2bd425be Add BlueRowColumnMask to hide columns w/ minimal overhead
Less overhead than ProjectStream
2025-08-24 13:46:46 -04:00
John Colvin 2af3c6e98d fix: Remove query from literal error stream
The parser can't handle colons in the expression (it throws/crashes)
2025-08-24 13:46:46 -04:00
John Colvin 74c1ef8dab fix: Remove erroneous "DSL: " prefix in ai prompt stream
This causes parse errors since we extended the dsl syntax to support
named params in the form of "name: arg".
2025-08-24 13:46:46 -04:00
John Colvin e3bcfa792c feat: Extend dsl to support explicit param names
When using explicit names, the argument order doesn't matter, and args
with defaults are automatically populated if omitted.
2025-08-24 13:46:46 -04:00
John Colvin 8f55916fe0 Add async SQLiteEnumerator to read sqlite tables as IBlueRowCollection 2025-08-24 13:46:46 -04:00
John Colvin 9fbf509b30 Add gen purpose blue row/table utils for data streams
* Add BlueRowReflection<T> so ViewStream implementations can use
  strong row types without needing to implement IBlueRow
* Add default implementations for IDictionary members in IBlueRow to make
  implementing IBlueRow less tedious
2025-08-24 13:46:46 -04:00
John Colvin 2004b76ebc ui: Add long/short avg cost lines to ladder 2025-08-24 13:46:46 -04:00
John Colvin 614e4de884 ui: Add exec fee columns to fills grid 2025-08-24 13:46:46 -04:00
John Colvin 0ba34da70e chore: Add exec fee to sec metadata config 2025-08-24 13:46:45 -04:00
John Colvin 826c1164be chore: Add fill_aggressor prop to ITradeLogRow 2025-08-24 13:46:45 -04:00
John Colvin 7b41dbb19a diag: Reduce "Waiting for request" log level to diag in py bridge
It's too noisy for Info
2025-08-24 17:45:21 +00:00
Adeel Khan e6a3116327 FIX: Minor recorder fixes. 2025-08-21 22:12:03 +00:00