John Colvin
e4d20be735
refactor: Add handy WebsocketExtensions
...
* IsSocketStateOpen
* IsClosedProperly
2024-02-09 23:05:37 -06:00
John Colvin
ca028c58ed
feat: Add Bts.DataStream.Websocket/Server
2024-02-09 22:31:10 -06:00
John Colvin
162969d2f7
Add bones for Bts.DataStreamWebApp.Client
2024-02-09 22:30:30 -06:00
John Colvin
d798594836
Add bones for Bts.DataStreamWebApp.Server
2024-02-09 22:30:07 -06:00
John Colvin
9611462e2c
add util: StringStreamEnumerable
2024-02-09 22:30:07 -06:00
John Colvin
54986aeccd
docker: Clean up, reorganize Dockerfile
2024-02-09 22:30:07 -06:00
John Colvin
6d489ce246
docker: Use explicit release ubuntu:22.04 (not 'latest')
...
We don't want the distro to automatically upgrade one day, when 'latest'
suddenly points to a new release. Upgrades like that need to be done
deliberately.
2024-02-09 22:30:07 -06:00
John Colvin
6217b190bb
docker: Install gdb (for c++ debugging)
...
VS Code debugger depends on this
2024-02-09 22:30:07 -06:00
John Colvin
6a262719af
cleanup: Remove empty file (clearly added by accident)
2024-02-09 22:30:07 -06:00
John Colvin
cf0282f86d
Add more descriptive logs (via stdout) during initialization
...
The C++ configure/initialize routines were particularly opaque
2024-02-09 22:27:58 -06:00
John Colvin
76be3074cd
fix: Fix improper 'OfType' linq cast
...
Previously, animations were expressed through polymorphism (derived from the
base class CellAnimation), but the new impl uses composition. This 'OfType' call
was leftover from the polymorphism implementation, an attempt to linq cast
elements of base class (CellAnimation) to BackgroundAnimation.
2024-02-09 22:27:58 -06:00
John Colvin
029d89386f
cleanup: Remove static service Locator class
...
It relied on a static singleton 'ServiceContext'. Replace references with a
properly scoped (i.e., non-static) ServiceContext
2024-02-09 22:27:58 -06:00
John Colvin
1544a6c3aa
refactor: Reduce code (simplify) in BTS.init
...
Remove the 'args' parameter, since the cmd line can be obtained from
Environment.GetCommandLine anyways
2024-02-09 22:27:58 -06:00
John Colvin
158dfdd606
Dispose connections in SimpleTCPServer.Dispose
2024-02-09 22:27:58 -06:00
John Colvin
aaa3ff114b
Polish PubSubServer cli
2024-02-09 22:27:57 -06:00
John Colvin
c98891f5e3
cleanup: Format PubSubServer.csproj
2024-02-09 22:23:08 -06:00
John Colvin
f31d8d011b
improvement: Polish DataStreamPublisher cli
...
Using CommandLineParser nuget pkg
2024-02-09 22:22:50 -06:00
John Colvin
7df97373ef
editorconfig: Use standard c# capitalization rules
...
* Use 'PascalCase' for public members (instead of 'snake_case')
* Use 'camelCase' for private members (instead of '_snake_case')
2024-02-09 01:06:35 -06:00
John Colvin
df7f8fc48f
refactor: Change WebsocketServerConfig.port to uint32
...
It should always be a number between 1-65535
2024-02-09 01:06:35 -06:00
John Colvin
33d9e344ed
refactor: Add WebsocketGatewayObservable
...
An IObservable wrapper for IWebsocketConnectionGateway
2024-02-09 01:06:35 -06:00
John Colvin
368dce37c6
refactor: Remove nullability constraint in GetValueOrDefault
2024-02-09 01:06:34 -06:00
John Colvin
e228b33c5a
refactor: Use events to avoid circular deps for ws sync/gateway
2024-02-09 01:06:34 -06:00
John Colvin
0116a0cfe5
refactor: Let caller specify nullability of T in json parse fn
2024-02-09 01:06:34 -06:00
John Colvin
6b7c115779
refactor: Get rid of redundant UniversalNumericComparer
2024-02-09 01:06:34 -06:00
John Colvin
85593f782d
refactor: Reorganize NumericComparer, support all types
2024-02-09 01:06:34 -06:00
John Colvin
cfa5c5a283
feat: Add JsonRpc types for websocket paradigm
2024-02-09 01:06:34 -06:00
John Colvin
29b901f546
docker: Remove kitware 'rc' (release candidate) apt repo
...
No reason to keep it. Probably shouldn't have been added in the first place
2024-02-09 01:06:34 -06:00
John Colvin
42a1f37dcf
docker: Make clang-17 the default clang
2024-02-09 01:06:34 -06:00
John Colvin
f63e6e2ad7
docker: Install clang 17
2024-02-09 01:06:34 -06:00
John Colvin
d40b34e6d5
docker: Update default compiler versions
...
Via update-alternatives
2024-02-09 01:06:34 -06:00
John Colvin
c1cf6230fa
docker: Upgrade dotnet 7 -> 8
2024-02-09 01:06:34 -06:00
John Colvin
1118e89cf4
cleanup: Remove leftover legacy files
2024-02-09 01:06:33 -06:00
John Colvin
6a536c1208
build: Upgrade c# to net8.0
2024-02-09 01:06:33 -06:00
John Colvin
9212c6d097
Line ending changes in yacc/lex generated code
...
I recently upgrade the YaccLexTools nuget to 1.2.2, perhaps these new
line endings are related to that.
2024-02-08 14:28:36 -06:00
John Colvin
8660dea85a
build: Downgrade new DataStream code from net8 -> net7
...
The AddColumnsStream, SortStream, and requisite yacc/lex grammar were
originally added to a new branch, off of development, which is on net8.
I forgot to change it to net7 when I cherry-picked the commits for the
regular development branch.
It's wasn't quite as simple as flipping net8 -> net7 in csproj files,
because I was eager to use new language features only available in net8!
Namely, primary constructors and collection expressions.
2024-02-08 14:24:31 -06:00
John Colvin
d0ddc1d57b
Resurrect SortStream
...
Add ColumnSortExpressions grammar (lex/yacc)
2024-02-08 10:04:53 -06:00
John Colvin
fe1e953030
Resurrect AddColumnStream
...
Add ColumnExpressions grammar (lex/yacc)
2024-02-08 10:04:53 -06:00
John Colvin
dab17af5a9
build: Upgrade YaccLexTools to 1.2.2
2024-02-08 00:51:16 -06:00
John Colvin
7fb7b1e4af
Fix PriceStatsStream
...
* Store subscription IDisposable in class (we need to control the life of the subscription)
* Flip typo '_dirty = false' -> '_dirty = true'
2024-02-04 22:14:00 -06:00
John Colvin
bc5bcbf11e
fix: Bootstrap MarketDataClient.price_ticker/stats w/ init state
...
Bugs (fixed):
* MarketDataClient.price_ticker, and price_stats streams don't fire update
with initial state (they only tick as subsequent changes are observed)
2024-02-04 15:33:20 -06:00
Taha Afzal
287ee291cc
Adding a stream that send a TCP packet to the echo server and monitors the n_sends and n_recvs
2024-01-25 13:37:41 -05:00
Taha Afzal
2bceda01ae
Added code in BlueDataUtility to create schema from data
2024-01-22 16:28:23 -05:00
John Colvin
c39a270115
fix: Support all exchs in QueryServer::get_names
2024-01-17 11:15:01 -05:00
Taha Afzal
6e3f9f99c0
Merge branch 'development' of bitbucket.org:bluetradesys/spark into development
2024-01-17 10:08:17 -05:00
John Colvin
b53d9d7d4c
refactor: Remove 'Platform' (md source) config
...
Good riddance. Improper 'PlatformMap' config was often the reason market
data mysteriously wouldn't show up in the client. Especially with new
exchanges. We should keep all md source/connection configuration in one
place (one proto message), to avoid any confusion.
2024-01-17 01:42:57 -05:00
Taha Afzal
cc3e289345
KeyValueToRelationalStream added
2024-01-16 19:08:40 -05:00
John Colvin
60a8b4f8c7
Gitignore all .tmp dirs (at any level)
2024-01-15 13:34:35 -05:00
John Colvin
c5e0a93869
Gitignore all .venv* dirs (at any level)
2024-01-15 13:33:05 -05:00
John Colvin
3a3216421b
Remove unnecessary file temp.cpp
2024-01-15 13:33:05 -05:00
Taha Afzal
8cbbbc6da3
Merging
2024-01-13 23:45:51 -05:00