John Colvin
fdfc9fbfaa
refactor: Move threads.proto to lib_system
2024-10-21 14:10:00 +00:00
John Colvin
245c7deb80
refactor: Move warn_ctrl.h into lib_system
...
This is another logging dep
2024-10-21 14:10:00 +00:00
John Colvin
14d8e635f9
build: Link boost_filesystem in lib_system
2024-10-21 14:10:00 +00:00
John Colvin
56e504820e
refactor: Move os.h/cpp and deps to lib_system
...
This is a prerequisite for the next objective: move logging into its own lib.
As logging is a core dependency for so much of our system, this will enable
us to move more complex services (like md providers) into smaller libs.
2024-10-21 14:10:00 +00:00
John Colvin
fe20bbb531
cleanup: Remove unused code
2024-10-21 14:10:00 +00:00
John Colvin
35a2a2ebc1
cleanup: Remove more unnecessary includes
2024-10-21 14:10:00 +00:00
John Colvin
30df01452b
refactor: Move SecurityMarketDataStatistics to lib_domain
2024-10-21 14:10:00 +00:00
John Colvin
96535bdf09
cleanup: Remove unnecessary code
2024-10-21 14:10:00 +00:00
John Colvin
1ae2366538
cleanup: Remove empty header FTXSecurity.h
2024-10-21 14:10:00 +00:00
John Colvin
251c84367a
cleanup: Remove temporary redirect headers
...
These were used to make code migration smoother (to the new lib_system and lib_domain)
* spark/algorithm/TryCatch.h -> system/algorithm/try_catch.h
* spark/core/BoolName.h -> system/bool_name.h
* spark/core/EnumMacros.h -> system/enum_macros.h
* spark/core/FMT.h -> system/FMT.h
* spark/core/FMT_IMPL.h -> system/FMT_IMPL.h
* spark/core/TimeSpan.h -> system/time_span.h
* spark/core/TimeStamp.h -> system/time_stamp.h
* spark/domain/Price.h -> domain/price.h
* spark/io/JsonReader.h -> system/json/json_reader.h
* spark/io/JsonDumper.h -> system/json/json_dumper.h
2024-10-21 14:09:59 +00:00
John Colvin
04495235a8
refactor: Move RFQ to lib_domain
2024-10-21 13:57:15 +00:00
John Colvin
7b76b1efc9
refactor: Move AggressorSide proto to lib_domain
...
Get rid of non-proto AggressorSide enum while we're at it (consolidate to 1 type)
2024-10-21 13:57:15 +00:00
John Colvin
b0eb7cce32
cleanup: Remove more unused code
2024-10-21 13:57:15 +00:00
John Colvin
2462e10f7b
refactor: Move a few Order types to lib_domain
2024-10-21 13:57:15 +00:00
John Colvin
ac1de992fa
refactor: Move TimeInForce to lib_domain
2024-10-21 13:57:15 +00:00
John Colvin
c237f2bdc6
cleanup: Remove unused code
2024-10-21 13:57:15 +00:00
John Colvin
83e01bc408
refactor: Move TradeRecord into lib_domain
2024-10-21 13:57:15 +00:00
John Colvin
1ce19c0529
refactor: Move TradingStatus enum to lib_domain
2024-10-21 13:57:15 +00:00
John Colvin
7064dce3ec
build: Update webpack-cli in admin webapp
2024-10-21 13:57:15 +00:00
John Colvin
92b9a441bd
build: Configure admin webapp build entirely in CMakeLists
...
Get rid of build_admin_web_app.py
2024-10-21 13:57:15 +00:00
John Colvin
dc6db64413
refactor: Move domain types into new lib_domain
...
Also rename files in snake_case (standard naming convention for protos)
https://protobuf.dev/programming-guides/style/
2024-10-21 13:57:15 +00:00
John Colvin
9834bb568c
refactor: Move collections into lib_system
2024-10-21 13:40:00 +00:00
John Colvin
88031be156
refactor: Move a handful of types/utils to lib_system
2024-10-21 13:40:00 +00:00
John Colvin
80762ed7fc
build: Add preset to build with 6 jobs (-j 6)
...
Otherwise the devcontainer may hog too much cpu and cause the container to freeze
2024-10-21 13:40:00 +00:00
John Colvin
ff097efc7a
cleanup: Remove unused includes
...
Mostly collection macro headers
2024-10-21 13:40:00 +00:00
John Colvin
5182f1f87e
cleanup (build): Move protobuf service generation cmake into lib_spark
...
Because lib_spark owns all the services
2024-10-21 13:40:00 +00:00
John Colvin
df0c11ceee
refactor: Rename protobuf out dir "include" -> "protobufs"
...
This is a more accurate and precise name. The dir contains c++ code generated
from .proto files - both sources (.cc) and headers (.pb.h).
2024-10-21 13:40:00 +00:00
John Colvin
2263221e2a
refactor: Move ValueWrapper into lib_system
...
So other projects can use it
2024-10-21 13:40:00 +00:00
John Colvin
ba369a5e30
Include bts_assert.h in bts_fatal.h
...
We shouldn't have to include bts_assert.h when we're already including bts_fatal.h
2024-10-21 13:40:00 +00:00
John Colvin
ee06eca830
refactor: Split MarketDataGateway up into providers/sources
...
MarketDataGateway still exists, but is greatly simplified. It creates
several `IMarketDataProvider`s, each of which generates a list of
`IMarketDataSource`s. The market data sources provide market data to an
`IMarketDataListener`.
* EmumbaMarketDataProvider
* CCApiMarketDataProvider
* PyMarketDataProvider
* OnixsMarketDataProvider
* ReplayMarketDataProvider
As a side effect, individual py market data sources are now explicitly
limited to a single venue (it probably should have been this way all
along, since the shared memory writers do not expect updates to involve
multiple venues).
2024-10-21 13:40:00 +00:00
John Colvin
11b056d27a
cleanup: Remove superfluous code
2024-10-21 13:40:00 +00:00
John Colvin
d1a9413f79
improvement: Set SHARED_MEMORY_PREFIX to an environment variable
...
So we can effectively define it at runtime. We don't want to have to
produce different builds just to change the shared mem prefix.
2024-10-21 13:40:00 +00:00
John Colvin
55acf55132
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.
2024-10-21 13:40:00 +00:00
John Colvin
d88a79a8cf
cleanup: Remove redundant macro def
2024-10-21 13:40:00 +00:00
John Colvin
52868c575b
Skip md recording thread loop if no recorders configured to run
2024-10-21 13:40:00 +00:00
John Colvin
d7c69cff25
Handle signal interrupts explicitly in sparkd
...
Otherwise the python interpretter, which is instantiated when we load
python md plugins, prevents the application from exiting.
2024-10-21 13:40:00 +00:00
John Colvin
d2f6d73d38
feat: Add support for python md plugins
2024-10-21 13:40:00 +00:00
John Colvin
6845f37a8e
fix build: Ensure py scripts use unix line endings
...
I'm not sure why, but my sparkd build (linux) suddenly began failing to
generate cpp headers for protos. The error message indicated it was due
to an unexpected carriage return (\r) in plugin.py:
/usr/bin/env: ‘python\r’: No such file or directory
2024-10-21 13:40:00 +00:00
John Colvin
c2001c212c
refactor: Add lib_system proj for common utils
...
Migrates the following:
* Delegate.h
* bts_array_size.h
* string_utils.h
Note: File names in the new lib are snake_case (this seems to be the
standard naming convention for c++).
2024-10-21 13:40:00 +00:00
John Colvin
4f3f913b24
cleanup: Trivial whitespace cleanup in sparkd CMakeLists
2024-10-21 13:40:00 +00:00
John Colvin
8c2436beb3
build: Add cmake fns to symlink and install local libs
...
The code needed to do this (inline) is ugly and verbose
2024-10-21 13:40:00 +00:00
John Colvin
00c674df42
cleanup: Use conventional UPPER_CASE var names in sparkd CMakeLists
2024-10-21 13:40:00 +00:00
John Colvin
3851994034
cleanup: Trivial whitespace cleanup in Protobuf.cmake
2024-10-21 13:40:00 +00:00
John Colvin
3781748355
build: Clean up data_files cmake proj (support --target clean)
2024-10-21 13:40:00 +00:00
John Colvin
13bd79de75
refactor: Organize libspark proj w/ stuttering include
...
This new structure provides several benefits:
* Allows us to install multiple CMake projects in the same destination
dir (without include path conflicts).
- This makes shipping the trading algo sdk a trivial excercise. Simply
copy the lib and include dirs from the install dest. That's it!
* Puts us in a position to break up the monolithic libspark into smaller
modules, which are easier to manage.
2024-10-21 13:39:59 +00:00
John Colvin
5d0b8ac1ab
vscode: Add debug cfg to skip sparkd build
2024-10-21 13:29:59 +00:00
John Colvin
5efd2d1663
fix build: Add ShmSegmentName.cpp to windows client sources
2024-10-21 13:29:59 +00:00
John Colvin
fe88e570a2
Make a few timestamp fns const
...
They should have been const in the first place
2024-10-21 13:29:59 +00:00
John Colvin
afad713f4e
Add config profiles to libspark
...
This is part of a larger effort to unify the libspark build, and eliminate
compile time differences between the builds used by our various services
2024-10-21 13:29:59 +00:00
John Colvin
99da1d3dc3
Add api server to docker compose
2024-10-21 13:29:59 +00:00