Commit Graph
12785 Commits
Author SHA1 Message Date
John Colvin 72adf58889 Add environment variable override for app data path
Historically, ~/sparkdata on linux, and ~/AppData/Roaming/bts on win.
Now that we may run multiple exes at once (api server, pubsub, sparkd, etc.),
we need to support multiple data dirs on the same host.
2025-11-19 13:55:43 -05:00
John Colvin f334955acf Drop ".exe" from log dir name on windows 2025-11-19 13:55:43 -05:00
John Colvin d1ee1e2798 feat: Add SpreadBook stream 2025-11-19 13:55:43 -05:00
John Colvin 152ea18266 fix: Check settings Subject.IsDisposed before using 2025-11-19 13:55:43 -05:00
John Colvin ed897c4969 ui (launcher): Move "X" button to left of report menu items
This is a more natural location. Also, it looked weird on the right because the
menu labels aren't fixed width, so the buttons weren't vertically aligned.
2025-11-19 13:55:43 -05:00
John Colvin 4397df4628 refactor: Use HostBuilder to launch spark w/ streams 2025-11-19 13:55:43 -05:00
John Colvin 92064bfb48 build: Update System.Composition pkg refs to 8.0.0 2025-11-19 13:55:43 -05:00
John Colvin 3c7f56b0c9 cleanup: Mark a few classes "internal" in Spark 2025-11-19 13:55:43 -05:00
John Colvin cd121defc5 cleanup: Use consistent access modifier in TabDocument partial class
It should be marked internal in both xaml and xaml.cs (it was previously
only so in the latter).
2025-11-19 13:55:43 -05:00
John Colvin ca9a6527ee refactor: Consolidate ShellBootstrapper and base class into one 2025-11-19 13:55:43 -05:00
John Colvin 6cf1b02a75 feat: Add Stream Reports shell window 2025-11-19 13:55:43 -05:00
John Colvin e7ee0e29cc build: Define custom "main" (entry point) for Spark exe
This is a prelude to integrating streams into spark. The plan is to use
an ms HostBuilder to instantiate stream services/dependencies alongside
the spark Application object.
2025-11-19 13:55:43 -05:00
John Colvin 3e28003d80 cleanup: Get rid of stunnel code
This looks like it hasn't been hooked up for years...it would only start
if a stunnel.conf file was detected, which hasn't been around for a very
long time.
2025-11-19 13:55:42 -05:00
John Colvin 63f74222ad fix: Only create mutex if spark app is NOT running in vs designer
I accidentally droped the '!' in a cleanup commit 4 years ago
2025-11-19 13:55:42 -05:00
John Colvin 2f73a79a6b fix (dsqa): Resolve name conflicts with new BlueOrb streams 2025-11-19 13:55:42 -05:00
John Colvin 4f00d4a20c fix: Fix typo in "DateTimeExpansionStream" type name
Previously, it was "DateTimeExpanstion" (erroneous "t")
2025-11-19 13:55:42 -05:00
John Colvin 8e4d6f9ae3 chore: Add CircularBuffer class (c#) 2025-11-19 13:55:42 -05:00
John Colvin a2b3a4e05d refactor: Rename ExceptionAssert.is_valid ExceptionAssert.Index.IsValid
Like the ExceptionAssert.Argument class that provides methods that throw
ArgumentException if a condition isn't satisfied, the ExceptionAssert.Index
class provides methods that throw IndexOutOfRange exceptions.
2025-11-19 13:55:42 -05:00
John Colvin 47dacc5d1a chore: Add OffsetList class
This supports mutations (unlike the SubRangeWrapper class).
2025-11-19 13:55:42 -05:00
John Colvin 9e842fd453 cleanup: Remove "partial" class modifiers from OrderBook vm classes
They simply weren't necessary.
2025-11-19 13:55:42 -05:00
John Colvin fd98be8f03 check pt: Proof of concept ladder left panel price point collection 2025-11-19 13:55:42 -05:00
John Colvin 43388affc3 ui: Adjust ladder ticks-per-row with ctrl+shift+mousewheel 2025-11-19 13:55:42 -05:00
John Colvin 78138eff26 feat: Add DataStream WebApp
Included in DataStreamSuite.sln, but not DataStreamQueryAnalyzer.sln
2025-11-19 13:55:41 -05:00
John Colvin f7c9ee7f6a Reduce log noise in AsyncTCPConnection_AsyncWrapper 2025-11-19 13:55:41 -05:00
John Colvin 054b819eb9 TEMP changes to appsettings.json (at least i should review them before making permanent) 2025-11-19 13:55:41 -05:00
John Colvin 8787c6752b Add ColumnIndex class to resolve column names to indices
Improves performance compared to accessing columns by name
2025-11-19 13:55:41 -05:00
John Colvin 5cd390d78a Increase SQLiteEnumerator page size to 65536
This performs better, and doesn't seem to be too large in practice
2025-11-19 13:55:41 -05:00
John Colvin 8804dbe093 Serialize TimeSpan w/ microsecond precision in DataPacket json 2025-11-19 13:55:41 -05:00
John Colvin fd24abc085 Format DateTimes w/ microsecond precision in DataPacketJsonConverter 2025-11-19 13:55:41 -05:00
John Colvin dce7e73d84 Add BlueColumnTable for pandas integration
This will make it easier/more natural to support pandas column expressions
2025-11-19 13:55:41 -05:00
John Colvin 6bb142f51f Add c# Variant class, modeled after std::variant in c++ 2025-11-19 13:55:41 -05:00
John Colvin b7df16ffd7 refactor: Rename snake_case fns PascalCase 2025-11-19 13:55:41 -05:00
John Colvin 63aaeae401 refactor: Use dependency injection in DSQA 2025-11-19 13:55:08 -05:00
John Colvin ea0a1fbcd3 refactor: Load IDataStreamFactory(s) with dependency injection
So we can create ViewStreams that depend on other services, config, etc.
Previously, the PrimitiveManager relied purely on static construction of
types through reflection.
2025-11-19 13:53:18 -05:00
John Colvin 7566b2560f refactor: Change namespace to Bts.DataStreamCore for a few types
Since they're in the DataStreamCore csproj
2025-11-19 13:29:16 -05:00
John Colvin 6f2d47c630 Make 'name' default to CallerArgumentExpression for convenience 2025-11-19 13:29:16 -05:00
John Colvin 61456be744 refactor: Replace if/else with switch cases 2025-11-19 13:29:16 -05:00
John Colvin 583420b161 cleanup: Remove over-engineered subcommands
We don't need explicit subcommands to 'run onixs' md (just use config).
2025-11-19 13:29:16 -05:00
John Colvin 090aacd0c7 fix: Ensure IDGenerator instance is created before deref 2025-11-19 13:29:16 -05:00
John Colvin 79be65b94c fix: Expand undefined vars to empty string
Bugs (fixed):
  * Md shared memory file names have unexpanded variable: '${BTS_SHARED_MEMORY_PREFIX}'
2025-11-19 13:29:16 -05:00
John Colvin 70ed999116 fix: Emplace MDConsumerHandle instead of copy assign 2025-11-19 13:29:16 -05:00
John Colvin 166651a45e cleanup: Remove unnecessary code
Trim includes as well
2025-11-19 13:29:16 -05:00
John Colvin aba6adc141 fix: Always prepend proc name to shared mem prefix
Our shared memory model isn't really designed to be shared across
processes. Maybe some day it will.
2025-11-19 13:29:16 -05:00
John Colvin 9352976190 cleanup: Remove redundant macro def 2025-11-19 13:29:16 -05:00
John Colvin 1840386e62 Skip md recording thread loop if no recorders configured to run 2025-11-19 13:29:16 -05:00
John Colvin f31b887638 build: Clean up data_files cmake proj (support --target clean) 2025-11-19 13:29:15 -05:00
John Colvin 760510e4d9 fix build: Add ShmSegmentName.cpp to windows client sources 2025-11-19 13:29:15 -05:00
John Colvin 3b6e0d004b Add api server to docker compose 2025-11-19 13:29:15 -05:00
John Colvin 0b630264d2 Change api server ports so they don't conflict w/ ds webapp 2025-11-19 13:29:15 -05:00
John Colvin 733fd3e378 build: Resolve app data dir and shared mem prefix at runtime
We really can't define them at compile time anymore as we build multiple
exes that depend on libspark in the same dir (e.g., spark api server,
pubsub, ds-publisher, webapp, etc.). That means one libspark.so (or dll)
must serve all exes. We should compile a consistent libspark to mitigate
the risk of running an exe with the wrong version (of libspark). For
example, running pubsub with a libspark configured for spark api server,
leftover from an earlier build.
2025-11-19 13:29:15 -05:00