refactor: Orgnaize libspark proj w/ stuttering include

This commit is contained in:
John Colvin committed 2024-08-23 16:22:41 +00:00
1 parent 9a1cc9664c
commit 28f27deb2e
1699 files changed
+4943 -6080

No files matched your search

+3 -3
View File
@@ -43,7 +43,7 @@ endif()
add_compile_definitions(EXPORT_MD_CONSUMER="${EXPORT_MD_CONSUMER}")
if(WIN32)
# subdirs
add_subdirectory(src/lib)
add_subdirectory(src/lib_spark)
else()
# make sparkd look for libspark.so in its directory
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
@@ -110,10 +110,10 @@ else()
# subdirs
if (BUILD_SPARKD)
add_subdirectory(src/server/sparkd)
add_subdirectory(src/app_sparkd)
add_subdirectory(src/data_files)
endif()
add_subdirectory(src/lib)
add_subdirectory(src/lib_spark)
if (BUILD_ADMIN_WEB_APP)
add_subdirectory(src/Spark.Admin.WebApp)
endif()
+1 -1
View File
@@ -293,7 +293,7 @@
"data_files_dir",
"admin_web_app_bundle",
"install",
"libspark",
"spark",
"rapidjson_project",
"server_layout",
"sparkd"
+20 -18
View File
@@ -1,6 +1,8 @@
set(Protobuf_PROTOC_EXECUTABLE "${EXTERNALS_BIN}/protoc")
set(PROTOBUF_INCLUDE_DIRS "${EXTERNALS_INCLUDE}")
set(PROTOBUF_STATIC_LIB "libprotobuf")
set(_protobuf_src_dir ${CMAKE_SOURCE_DIR}/src/lib_spark)
set(_protobuf_bin_dir ${CMAKE_BINARY_DIR}/src/lib_spark)
function(Protobuf_Generate_Cpp SRCS HDRS)
set(${SRCS})
@@ -21,8 +23,8 @@ function(Protobuf_Generate_Cpp SRCS HDRS)
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc"
"${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h"
COMMAND
${Protobuf_PROTOC_EXECUTABLE} ARGS --cpp_out=${CMAKE_BINARY_DIR}/src -I
${PROTOBUF_INCLUDE_DIRS} -I ${CMAKE_SOURCE_DIR}/src ${ABS_FIL}
${Protobuf_PROTOC_EXECUTABLE} ARGS --cpp_out=${_protobuf_bin_dir} -I
${PROTOBUF_INCLUDE_DIRS} -I ${_protobuf_src_dir} ${ABS_FIL}
DEPENDS ${ABS_FIL}
COMMENT "Running C++ protocol buffer compiler on ${FIL}"
VERBATIM)
@@ -73,13 +75,15 @@ function(Service_Compiler_Generate_Cpp SRCS HDRS)
list(APPEND ${HDRS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.server.pb.h")
set(TEMPLATES
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/templates/cpp/client.pb.cc
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/templates/cpp/client.pb.h
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/templates/cpp/server.pb.cc
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/templates/cpp/server.pb.h
${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/api/service_compiler/templates/cpp/client.pb.cc
${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/api/service_compiler/templates/cpp/client.pb.h
${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/api/service_compiler/templates/cpp/server.pb.cc
${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/api/service_compiler/templates/cpp/server.pb.h
)
set(_plugin_py ${CMAKE_SOURCE_DIR}/src/lib_spark/spark/api/service_compiler/plugin.py)
if(WIN32)
set(_plugin_cmd ${CMAKE_SOURCE_DIR}/src/lib_spark/spark/api/service_compiler/plugin.cmd)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc"
"${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h"
@@ -90,12 +94,11 @@ function(Service_Compiler_Generate_Cpp SRCS HDRS)
COMMAND SET PYTHONPATH=${SPARK_PYTHON}
COMMAND ${CMAKE_SOURCE_DIR}/.venv/Scripts/activate.bat
COMMAND
${Protobuf_PROTOC_EXECUTABLE} ARGS --cpp_out=${CMAKE_BINARY_DIR}/src
--plugin=protoc-gen-service=${CMAKE_SOURCE_DIR}/src/lib/api/service_compiler/plugin.cmd
--service_out=lang=cpp:${CMAKE_BINARY_DIR}/src -I
${PROTOBUF_INCLUDE_DIRS} -I ${CMAKE_SOURCE_DIR}/src ${ABS_FIL}
DEPENDS ${ABS_FIL} ${TEMPLATES}
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/plugin.py
${Protobuf_PROTOC_EXECUTABLE} ARGS --cpp_out=${_protobuf_bin_dir}
--plugin=protoc-gen-service=${_plugin_cmd}
--service_out=lang=cpp:${_protobuf_bin_dir} -I
${PROTOBUF_INCLUDE_DIRS} -I ${_protobuf_src_dir} ${ABS_FIL}
DEPENDS ${ABS_FIL} ${TEMPLATES} ${_plugin_cmd} ${_plugin_py}
COMMENT "Running C++ service compiler on ${FIL}"
VERBATIM)
else()
@@ -109,12 +112,11 @@ function(Service_Compiler_Generate_Cpp SRCS HDRS)
COMMAND ${CMAKE_SOURCE_DIR}/tools/venv_exec.sh
ARGS
${Protobuf_PROTOC_EXECUTABLE}
--cpp_out=${CMAKE_BINARY_DIR}/src
--plugin=protoc-gen-service=${CMAKE_SOURCE_DIR}/src/lib/api/service_compiler/plugin.py
--service_out=lang=cpp,make_file_name=${ABS_FIL}:${CMAKE_BINARY_DIR}/src
-I ${PROTOBUF_INCLUDE_DIRS} -I ${CMAKE_SOURCE_DIR}/src ${ABS_FIL}
DEPENDS ${ABS_FIL} ${TEMPLATES}
${CMAKE_CURRENT_SOURCE_DIR}/api/service_compiler/plugin.py
--cpp_out=${_protobuf_bin_dir}
--plugin=protoc-gen-service=${_plugin_py}
--service_out=lang=cpp,make_file_name=${ABS_FIL}:${_protobuf_bin_dir}
-I ${PROTOBUF_INCLUDE_DIRS} -I ${_protobuf_src_dir} ${ABS_FIL}
DEPENDS ${ABS_FIL} ${TEMPLATES} ${_plugin_py}
COMMENT "Running C++ service compiler on ${FIL}"
VERBATIM)
endif()
+6 -6
View File
@@ -7,11 +7,11 @@ include(GNUInstallDirs)
# dependencies
set(PROTO_GLOBS
../lib/api/*.proto
../lib/api/services/*.proto
../lib/domain_model/*.proto
../lib/sparkproto/*.proto
../lib/md/protos/*.proto
../lib_spark/spark/api/*.proto
../lib_spark/spark/api/services/*.proto
../lib_spark/spark/domain_model/*.proto
../lib_spark/spark/sparkproto/*.proto
../lib_spark/spark/md/protos/*.proto
../../externals/linux/include/google/protobuf/descriptor.proto
../../externals/linux/include/google/protobuf/timestamp.proto)
@@ -59,7 +59,7 @@ set(_build_admin_web_app_deps
${_build_admin_web_app_py}
${CMAKE_CURRENT_SOURCE_DIR}/src/Spark.Admin.WebApp.fsproj
${CMAKE_CURRENT_SOURCE_DIR}/webpack.config.js
${CMAKE_SOURCE_DIR}/src/lib/api/service_compiler/templates/fs/fable.fs
${CMAKE_SOURCE_DIR}/src/lib_spark/spark/api/service_compiler/templates/fs/fable.fs
${CMAKE_CURRENT_SOURCE_DIR}/package-lock.json
${_proto_rel_SOURCES}
${_api_ts_SOURCES}
@@ -5,6 +5,10 @@ include(${CMAKE_SOURCE_DIR}/cmake/safe_dep_glob.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/Protobuf.cmake)
include(GNUInstallDirs)
if (NOT DEFINED PROJECT_VERSION)
set(PROJECT_VERSION 1.0.0)
endif()
# dependencies
file(
GLOB_RECURSE Protos
@@ -22,9 +26,9 @@ add_executable(sparkd ${Sparkd_Sources} ${Proto_Srcs})
# include paths
target_include_directories(
sparkd PUBLIC
${CMAKE_SOURCE_DIR}/src/server/sparkd/cmds/spartan
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src/server/sparkd/cmds/spartan ${emumba-deribit-connector-library_INCLUDE_DIRS})
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<BUILD_INTERFACE:${emumba-deribit-connector-library_INCLUDE_DIRS}>)
find_package(PkgConfig REQUIRED)
pkg_check_modules(emumba-deribit-connector-library REQUIRED emumba-deribit-connector)
@@ -32,7 +36,10 @@ pkg_check_modules(emumba-deribit-connector-library REQUIRED emumba-deribit-conne
# This dir contains rapidjsonConfig.cmake
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
find_package(rapidjson REQUIRED)
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${rapidjson_INCLUDE_DIR})
target_include_directories(
${PROJECT_NAME} SYSTEM PUBLIC
$<BUILD_INTERFACE:${rapidjson_INCLUDE_DIR}>
)
add_dependencies(${PROJECT_NAME} rapidjson_project)
# deribit-demo log level
@@ -68,7 +75,7 @@ endif()
# linking
target_link_libraries(
sparkd
libspark
spark
${emumba-deribit-connector-library_LIBRARIES}
ssl
cryptopp
@@ -87,10 +94,5 @@ target_link_libraries(
-static-libstdc++
-pthread)
add_custom_command(
TARGET sparkd
POST_BUILD
COMMAND ln -fs ${CMAKE_BINARY_DIR}/src/lib/libspark.so ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ln ARGS -sf ${EXTERNALS_ROOT}/../src/emumba/sparkd.lic ${CMAKE_BINARY_DIR}/src/server/sparkd)
install(TARGETS sparkd DESTINATION "${CMAKE_INSTALL_BINDIR}")
include(${CMAKE_SOURCE_DIR}/cmake/InstallBasicConfig.cmake)
install_basic_config()
+5
View File
@@ -0,0 +1,5 @@
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/sparkdTargets.cmake")
check_required_components(libspark)
File renamed without changes.
@@ -1,16 +1,16 @@
#pragma once
#include "lib/api/public/ServiceContext.h"
#include "lib/api/services/AlgoDefinitionService.server.pb.h"
#include "lib/api/services/OrderService.client.pb.h"
#include "lib/api/services/OrderService.pb.h"
#include "lib/logging/logging.h"
#include "lib/persistence/IStore.h"
#include "lib/persistence/SqliteStore.h"
#include "lib/utils/PBUtils.h"
#include "lib/utils/TimeStamp.h"
#include "lib/utils/bts_assert.h"
#include "lib/utils/bts_no_copy.h"
#include "spark/api/public/ServiceContext.h"
#include "spark/api/services/AlgoDefinitionService.server.pb.h"
#include "spark/api/services/OrderService.client.pb.h"
#include "spark/api/services/OrderService.pb.h"
#include "spark/logging/logging.h"
#include "spark/persistence/IStore.h"
#include "spark/persistence/SqliteStore.h"
#include "spark/utils/PBUtils.h"
#include "spark/utils/TimeStamp.h"
#include "spark/utils/bts_assert.h"
#include "spark/utils/bts_no_copy.h"
#include <memory>
#include <boost/tokenizer.hpp>
@@ -1,15 +1,15 @@
#include "AnalyticsServiceServer.h"
#include "lib/api/apicore.pb.h"
#include "lib/api/services/AnalyticsService.pb.h"
#include "lib/api/services/AnalyticsService.server.pb.h"
#include "lib/api/services/ShellLatencyService.pb.h"
#include "lib/logging/logging.h"
#include "lib/persistence/IStore.h"
#include "lib/persistence/SqliteStore.h"
#include "lib/utils/PBUtils.h"
#include "lib/utils/Puid.h"
#include "lib/utils/TimeStamp.h"
#include "lib/utils/bts_assert.h"
#include "spark/api/apicore.pb.h"
#include "spark/api/services/AnalyticsService.pb.h"
#include "spark/api/services/AnalyticsService.server.pb.h"
#include "spark/api/services/ShellLatencyService.pb.h"
#include "spark/logging/logging.h"
#include "spark/persistence/IStore.h"
#include "spark/persistence/SqliteStore.h"
#include "spark/utils/PBUtils.h"
#include "spark/utils/Puid.h"
#include "spark/utils/TimeStamp.h"
#include "spark/utils/bts_assert.h"
#include "server/sparkd/algo/AlgoDefinitionServiceServer.h"
#include <boost/algorithm/string.hpp>
#include <boost/tokenizer.hpp>
@@ -1,7 +1,7 @@
#pragma once
#include "lib/api/services/AnalyticsService.server.pb.h"
#include "lib/utils/bts_no_copy.h"
#include "spark/api/services/AnalyticsService.server.pb.h"
#include "spark/utils/bts_no_copy.h"
namespace bts {
namespace api {
@@ -1,13 +1,13 @@
#include "AdminReport.h"
#include "lib/api/public/ServiceContext.h"
#include "lib/config/config.h"
#include "lib/config/protos/logging.pb.h"
#include "lib/logging/logging.h"
#include "lib/quickbus/quickbus.h"
#include "spark/api/public/ServiceContext.h"
#include "spark/config/config.h"
#include "spark/config/protos/logging.pb.h"
#include "spark/logging/logging.h"
#include "spark/quickbus/quickbus.h"
#include "lib/api/service_helpers/AdminServiceUtils.h"
#include "lib/api/services/AdminService.client.pb.h"
#include "spark/api/service_helpers/AdminServiceUtils.h"
#include "spark/api/services/AdminService.client.pb.h"
#include <algorithm>
#include <boost/algorithm/string.hpp>
@@ -1,12 +1,12 @@
#include "AutoCert.h"
#include "lib/utils/PBUtils.h"
#include "spark/utils/PBUtils.h"
#include "lib/jetfix/common/InMsgBuffer.h"
#include "lib/utils/bts_chrono.h"
#include "lib/utils/datetime.h"
#include "spark/jetfix/common/InMsgBuffer.h"
#include "spark/utils/bts_chrono.h"
#include "spark/utils/datetime.h"
#include "lib/jetfix/codec/i32_toa.h"
#include "lib/utils/SecureLogon.h"
#include "spark/jetfix/codec/i32_toa.h"
#include "spark/utils/SecureLogon.h"
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
File renamed without changes.
@@ -1,13 +1,13 @@
#include "CMECert.h"
#include "lib/logging/logging.h"
#include "lib/orderman/ilink3/IL3Dispatcher.h"
#include "lib/orderman/ilink3/IL3GW.h"
#include "lib/orderman/ilink3/IL3Reactor.h"
#include "lib/orderman/ilink3/ILink3Utils.h"
#include "lib/os/os.h"
#include "lib/utils/Dispatcher.h"
#include "lib/utils/SecureLogon.h"
#include "lib/utils/TimeStamp.h"
#include "spark/logging/logging.h"
#include "spark/orderman/ilink3/IL3Dispatcher.h"
#include "spark/orderman/ilink3/IL3GW.h"
#include "spark/orderman/ilink3/IL3Reactor.h"
#include "spark/orderman/ilink3/ILink3Utils.h"
#include "spark/os/os.h"
#include "spark/utils/Dispatcher.h"
#include "spark/utils/SecureLogon.h"
#include "spark/utils/TimeStamp.h"
#include <chrono>
#include <fstream>
#include <future>
File renamed without changes.
@@ -1,6 +1,6 @@
#include "ConfigCmd.h"
#include "lib/config/ConfigQuerier.h"
#include "lib/config/config.h"
#include "spark/config/ConfigQuerier.h"
#include "spark/config/config.h"
namespace bts::cmds {
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,18 +1,18 @@
#include "KeyCmd.h"
#include "lib/config/config.h"
#include "lib/config/protos/keycode.pb.h"
#include "lib/logging/logging.h"
#include "lib/os/os.h"
#include "lib/utils/AuthToken.h"
#include "lib/utils/FileUtils.h"
#include "lib/utils/bts_assert.h"
#include "lib/utils/crypto/CryptoInit.h"
#include "lib/utils/crypto/KeyCodeHelper.h"
#include "lib/utils/crypto/PrivateKey.h"
#include "lib/utils/crypto/PublicKey.h"
#include "lib/utils/datetime.h"
#include "lib/utils/helper_macros.h"
#include "spark/config/config.h"
#include "spark/config/protos/keycode.pb.h"
#include "spark/logging/logging.h"
#include "spark/os/os.h"
#include "spark/utils/AuthToken.h"
#include "spark/utils/FileUtils.h"
#include "spark/utils/bts_assert.h"
#include "spark/utils/crypto/CryptoInit.h"
#include "spark/utils/crypto/KeyCodeHelper.h"
#include "spark/utils/crypto/PrivateKey.h"
#include "spark/utils/crypto/PublicKey.h"
#include "spark/utils/datetime.h"
#include "spark/utils/helper_macros.h"
#include <boost/algorithm/string/replace.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,10 +1,10 @@
#include "ParseHistoricalFIX.h"
#include "lib/jetfix/codec/FIXMsg.h"
#include "lib/jetfix/codec/FIXParser.h"
#include "lib/jetfix/codec/Fields.h"
#include "lib/jetfix/codec/Group.h"
#include "lib/jetfix/codec/MessageTypes.h"
#include "lib/utils/bts_chrono.h"
#include "spark/jetfix/codec/FIXMsg.h"
#include "spark/jetfix/codec/FIXParser.h"
#include "spark/jetfix/codec/Fields.h"
#include "spark/jetfix/codec/Group.h"
#include "spark/jetfix/codec/MessageTypes.h"
#include "spark/utils/bts_chrono.h"
#include <fstream>
#include <unordered_map>
@@ -1,7 +1,7 @@
#include "server/sparkd/cmds/PrintHedgeOrders.h"
#include "lib/api/services/OrderService.pb.h"
#include "lib/persistence/SqliteStore.h"
#include "lib/utils/PBUtils.h"
#include "spark/api/services/OrderService.pb.h"
#include "spark/persistence/SqliteStore.h"
#include "spark/utils/PBUtils.h"
namespace bts::cmds {
@@ -1,5 +1,5 @@
#include "QuickTest.h"
#include "lib/logging/logging.h"
#include "spark/logging/logging.h"
#include <thread>
File renamed without changes.
@@ -1,31 +1,31 @@
#include "Run.h"
#include "lib/api/public/ServiceContext.h"
#include "lib/config/config.h"
#include "lib/config/protos/ports.pb.h"
#include "lib/config/protos/quickbus_cfg.pb.h"
#include "lib/config/protos/toggles.pb.h"
#include "lib/logging/logging.h"
#include "lib/md/MBOProcessor.h"
#include "lib/md/MBOServiceServer.h"
#include "lib/md/MDClient.h"
#include "lib/md/SyntheticSecurityService.h"
#include "lib/md/relay/QueryServer.h"
#include "lib/md/service/MarketDataServiceServer.h"
#include "lib/metrics/metrics.h"
#include "lib/metrics/system_metrics.h"
#include "lib/orderman/OrderServiceServer.h"
#include "lib/orderman/gateways/sim/SimExecutionGatewayFactory.h"
#include "lib/orderman/order_factory/DynamicOrderRegistry.h"
#include "lib/orderman/orders/algo/algo_orders/ProRataAlgo.h"
#include "lib/orderman/orders/algo/algo_orders/ScratchAlgo.h"
#include "lib/os/os.h"
#include "lib/persistence/PersistenceServiceServer.h"
#include "lib/plugin/SparkServices.h"
#include "lib/plugin/plugin.h"
#include "lib/quickbus/quickbus.h"
#include "lib/tracing/PerfLog.h"
#include "lib/utils/Dispatcher.h"
#include "lib/utils/thread_manager.h"
#include "spark/api/public/ServiceContext.h"
#include "spark/config/config.h"
#include "spark/config/protos/ports.pb.h"
#include "spark/config/protos/quickbus_cfg.pb.h"
#include "spark/config/protos/toggles.pb.h"
#include "spark/logging/logging.h"
#include "spark/md/MBOProcessor.h"
#include "spark/md/MBOServiceServer.h"
#include "spark/md/MDClient.h"
#include "spark/md/SyntheticSecurityService.h"
#include "spark/md/relay/QueryServer.h"
#include "spark/md/service/MarketDataServiceServer.h"
#include "spark/metrics/metrics.h"
#include "spark/metrics/system_metrics.h"
#include "spark/orderman/OrderServiceServer.h"
#include "spark/orderman/gateways/sim/SimExecutionGatewayFactory.h"
#include "spark/orderman/order_factory/DynamicOrderRegistry.h"
#include "spark/orderman/orders/algo/algo_orders/ProRataAlgo.h"
#include "spark/orderman/orders/algo/algo_orders/ScratchAlgo.h"
#include "spark/os/os.h"
#include "spark/persistence/PersistenceServiceServer.h"
#include "spark/plugin/SparkServices.h"
#include "spark/plugin/plugin.h"
#include "spark/quickbus/quickbus.h"
#include "spark/tracing/PerfLog.h"
#include "spark/utils/Dispatcher.h"
#include "spark/utils/thread_manager.h"
#include "md/cmds/Run.h"
#include "server/sparkd/algo/AlgoDefinitionServiceServer.h"
#include "server/sparkd/analytics/AnalyticsServiceServer.h"
File renamed without changes.
@@ -4,14 +4,14 @@
#include "server/sparkd/position/Position.h"
#include "server/sparkd/position/PositionAggregator.h"
#include "lib/orderman/orderman_utils/orderman_common.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "lib/api/public/ServiceContext.h"
#include "lib/api/services/AuthService.client.pb.h"
#include "lib/config/config.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/utils/Dispatcher.h"
#include "lib/utils/helper_macros.h"
#include "spark/api/public/ServiceContext.h"
#include "spark/api/services/AuthService.client.pb.h"
#include "spark/config/config.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/utils/Dispatcher.h"
#include "spark/utils/helper_macros.h"
#include <condition_variable>
#include <future>
File renamed without changes.
@@ -1,21 +1,21 @@
#include "Web.h"
#include "lib/api/public/ServiceContext.h"
#include "lib/api/services/MarketDataService.pb.h"
#include "lib/api/services/SyntheticSecurityService.pb.h"
#include "lib/config/config.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/config/protos/ports.pb.h"
#include "lib/config/protos/quickbus_cfg.pb.h"
#include "lib/md/MBOProcessor.h"
#include "lib/md/MDClient.h"
#include "lib/md/SyntheticSecurityService.h"
#include "lib/md/relay/QueryServer.h"
#include "lib/metrics/metrics.h"
#include "lib/metrics/system_metrics.h"
#include "lib/quickbus/quickbus.h"
#include "lib/tracing/PerfLog.h"
#include "lib/utils/Dispatcher.h"
#include "lib/utils/thread_manager.h"
#include "spark/api/public/ServiceContext.h"
#include "spark/api/services/MarketDataService.pb.h"
#include "spark/api/services/SyntheticSecurityService.pb.h"
#include "spark/config/config.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/config/protos/ports.pb.h"
#include "spark/config/protos/quickbus_cfg.pb.h"
#include "spark/md/MBOProcessor.h"
#include "spark/md/MDClient.h"
#include "spark/md/SyntheticSecurityService.h"
#include "spark/md/relay/QueryServer.h"
#include "spark/metrics/metrics.h"
#include "spark/metrics/system_metrics.h"
#include "spark/quickbus/quickbus.h"
#include "spark/tracing/PerfLog.h"
#include "spark/utils/Dispatcher.h"
#include "spark/utils/thread_manager.h"
#include "md/cmds/Cleanup.h"
#include "md/cmds/Run.h"
#include "server/sparkd/exchange_sim/ExchangeSim.h"
File renamed without changes.
@@ -1,5 +1,5 @@
#include "Validators.h"
#include "lib/utils/FileUtils.h"
#include "spark/utils/FileUtils.h"
#include <fmt/format.h>
namespace bts::cmds {
@@ -1,6 +1,6 @@
#include "DeribitDemo.h"
#include "DeribitDemoConfiguration.h"
#include "lib/logging/logging.h"
#include "spark/logging/logging.h"
#include "server/sparkd/cmds/crypto/DeribitDemoListener.h"
#include <csignal>
#include <emumba-deribit-connector/deribit_exception.h>
@@ -1,7 +1,7 @@
#include "DeribitDemoCmd.h"
#include "DeribitDemo.h"
#include "lib/config/config.h"
#include "lib/os/os.h"
#include "spark/config/config.h"
#include "spark/os/os.h"
#include <CLI11/CLI11.hpp>
#include <functional>
#include <optional>
@@ -1,6 +1,6 @@
#include "DeribitDemoConfiguration.h"
#include "RapidJsonReader.h"
#include "lib/logging/logging.h"
#include "spark/logging/logging.h"
#include "rapidjson/istreamwrapper.h"
#include <emumba-deribit-connector/deribit_utils.h>
#include <fstream>
@@ -1,6 +1,6 @@
#pragma once
#include "lib/core/FMT_IMPL.h"
#include "spark/core/FMT_IMPL.h"
#include <emumba-deribit-connector/deribit_utils.h>
#include <iostream>
@@ -1,6 +1,6 @@
// #include "DeribitDemoListener.h"
// #include "lib/utils/UNUSED_PARAM.h"
// #include "lib/utils/overloaded.h"
// #include "spark/utils/UNUSED_PARAM.h"
// #include "spark/utils/overloaded.h"
// #include "rapidjson/istreamwrapper.h"
// #include "rapidjson/ostreamwrapper.h"
// #include "rapidjson/stringbuffer.h"
@@ -1,5 +1,5 @@
#include "LiveLadderDemo.h"
#include "lib/api/md/MarketDataConfig.pb.h"
#include "spark/api/md/MarketDataConfig.pb.h"
#include "server/sparkd/md/MarketDataGateway.h"
#include "server/sparkd/md/MarketDataRegistration.h"
#include "server/sparkd/md/listeners/LiveLadderPrinter.h"
@@ -1,9 +1,9 @@
#ifdef SPARK_ENABLE_CCAPI
#include "LiveLadderDemoCmd.h"
#include "LiveLadderDemo.h"
#include "lib/api/md/MarketDataConfig.pb.h"
#include "lib/io/ProtoReader.h"
#include "lib/logging/logging.h"
#include "spark/api/md/MarketDataConfig.pb.h"
#include "spark/io/ProtoReader.h"
#include "spark/logging/logging.h"
#include "server/sparkd/cmds/common/Validators.h"
#include "server/sparkd/cmds/crypto/LiveLadderDemo.h"
#include <CLI11/CLI11.hpp>
@@ -1,5 +1,5 @@
#pragma once
#include "lib/utils/bts_assert.h"
#include "spark/utils/bts_assert.h"
#include <rapidjson/document.h>
#include <string>
@@ -1,5 +1,5 @@
#include "Channels.h"
#include "lib/md/cme/MDP3Utils.h"
#include "spark/md/cme/MDP3Utils.h"
namespace bts::cmds::md::cmds {
@@ -1,9 +1,9 @@
#include "Cleanup.h"
#include "lib/config/config.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/logging/logging.h"
#include "lib/md/ShmSegmentName.h"
#include "lib/md/protos/co2.pb.h"
#include "spark/config/config.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/logging/logging.h"
#include "spark/md/ShmSegmentName.h"
#include "spark/md/protos/co2.pb.h"
#include <boost/filesystem.hpp>
#include <string>
@@ -1,12 +1,12 @@
#include "Dump.h"
#include "../common/SecurityTypeOption.h"
#include "../common/VenueOption.h"
#include "lib/config/config.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/md/Diag/ShmDumper.h"
#include "lib/md/ShmSegmentName.h"
#include "lib/md/protos/co2.pb.h"
#include "spark/config/config.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/md/Diag/ShmDumper.h"
#include "spark/md/ShmSegmentName.h"
#include "spark/md/protos/co2.pb.h"
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <map>
@@ -1,10 +1,10 @@
#include "DumpSecurity.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/md/Diag/ShmDumper.h"
#include "lib/md/SecurityDB.h"
#include "lib/md/SymbolLoader.h"
#include "lib/md/UserSymbol.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/md/Diag/ShmDumper.h"
#include "spark/md/SecurityDB.h"
#include "spark/md/SymbolLoader.h"
#include "spark/md/UserSymbol.h"
#include <unordered_set>
#include <vector>
@@ -1,5 +1,5 @@
#include "Record.h"
#include "lib/md/relay/RelayRecorder.h"
#include "spark/md/relay/RelayRecorder.h"
#include <boost/filesystem.hpp>
namespace bts::cmds::md::cmds {
@@ -1,5 +1,5 @@
#include "Relay.h"
#include "lib/md/relay/RelayClient.h"
#include "spark/md/relay/RelayClient.h"
namespace bts::cmds::md::cmds {
@@ -1,5 +1,5 @@
#include "Replay.h"
#include "lib/md/relay/RelayRecorder.h"
#include "spark/md/relay/RelayRecorder.h"
namespace bts::cmds::md::cmds {
@@ -1,14 +1,14 @@
#include "Run.h"
#include "Cleanup.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/domain/SecurityCriteria.h"
#include "lib/logging/logging.h"
#include "lib/md/SymbolLoader.h"
#include "lib/md/UserSymbol.h"
#include "lib/md/relay/RelayRecorder.h"
#include "lib/os/os.h"
#include "lib/utils/bts_assert.h"
#include "lib/utils/thread_manager.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/domain/SecurityCriteria.h"
#include "spark/logging/logging.h"
#include "spark/md/SymbolLoader.h"
#include "spark/md/UserSymbol.h"
#include "spark/md/relay/RelayRecorder.h"
#include "spark/os/os.h"
#include "spark/utils/bts_assert.h"
#include "spark/utils/thread_manager.h"
#include "server/sparkd/md/MarketDataGateway.h"
#include "server/sparkd/md/platforms/IMDPlatform.h"
#include "server/sparkd/md/platforms/ice_onixs/ICEMain.h"
@@ -1,5 +1,5 @@
#pragma once
#include "lib/md/MBOProcessor.h"
#include "spark/md/MBOProcessor.h"
#include "server/sparkd/md/platforms/mdp3_onixs/TradeSummarySignalDispatcher.h"
#include <CLI11/CLI11.hpp>
@@ -1,12 +1,12 @@
#include "Tail.h"
#include "lib/api/domain/SecurityType.pb.h"
#include "lib/api/domain/Venue.pb.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/domain/SecurityCriteria.h"
#include "lib/md/Diag/MDPeriodicDumper.h"
#include "lib/md/Diag/ShmDumper.h"
#include "lib/md/SymbolLoader.h"
#include "lib/md/UserSymbol.h"
#include "spark/api/domain/SecurityType.pb.h"
#include "spark/api/domain/Venue.pb.h"
#include "spark/config/protos/market_data.pb.h"
#include "spark/domain/SecurityCriteria.h"
#include "spark/md/Diag/MDPeriodicDumper.h"
#include "spark/md/Diag/ShmDumper.h"
#include "spark/md/SymbolLoader.h"
#include "spark/md/UserSymbol.h"
#include <map>
namespace bts::cmds::md::cmds {
@@ -1,5 +1,5 @@
#include "Print.h"
#include "lib/md/relay/RelayRecorder.h"
#include "spark/md/relay/RelayRecorder.h"
namespace bts::cmds::md::cmds::rec_tool::cmds {
@@ -1,5 +1,5 @@
#include "Trace.h"
#include "lib/md/relay/RelayRecorder.h"
#include "spark/md/relay/RelayRecorder.h"
namespace bts::cmds::md::cmds::rec_tool::cmds {
@@ -1,5 +1,5 @@
#include "Unprint.h"
#include "lib/md/relay/RelayRecorder.h"
#include "spark/md/relay/RelayRecorder.h"
namespace bts::cmds::md::cmds::rec_tool::cmds {
@@ -1,6 +1,6 @@
#pragma once
#include "../../common/EnumOptionNames.h"
#include "lib/domain_model/Security.pb.h"
#include "spark/domain_model/Security.pb.h"
#include <map>
#include <string>
@@ -1,5 +1,5 @@
#include "VenueOption.h"
#include "lib/domain_model/Security.pb.h"
#include "spark/domain_model/Security.pb.h"
namespace bts::cmds::md {
@@ -1,6 +1,6 @@
#pragma once
#include "../../common/EnumOptionNames.h"
#include "lib/domain_model/Security.pb.h"
#include "spark/domain_model/Security.pb.h"
#include <map>
#include <string>
@@ -10,21 +10,21 @@
#include <iostream>
#include <string>
#include "lib/config/config.h"
#include "lib/config/protos/exchange_sim_cfg.pb.h"
#include "lib/config/protos/ports.pb.h"
#include "lib/config/protos/system_config.pb.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/logging/logging.h"
#include "lib/md/PriceSize.h"
#include "lib/os/os.h"
#include "spark/config/config.h"
#include "spark/config/protos/exchange_sim_cfg.pb.h"
#include "spark/config/protos/ports.pb.h"
#include "spark/config/protos/system_config.pb.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/logging/logging.h"
#include "spark/md/PriceSize.h"
#include "spark/os/os.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/md/IntPrice.h"
#include "lib/md/MBOProcessor.h"
#include "lib/md/relay/RelayClient.h"
#include "lib/md/relay/RelayRecorder.h"
#include "lib/utils/bts_chrono.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/md/IntPrice.h"
#include "spark/md/MBOProcessor.h"
#include "spark/md/relay/RelayClient.h"
#include "spark/md/relay/RelayRecorder.h"
#include "spark/utils/bts_chrono.h"
#include <quickfix/FileLog.h>
#include <set>
@@ -1,6 +1,6 @@
#pragma once
#include "lib/domain_model/Security.pb.h"
#include "spark/domain_model/Security.pb.h"
#include <memory>
namespace bts {
@@ -1,19 +1,19 @@
#include "ExchangeSimApplication.h"
#include "lib/md/SecurityDB.h"
#include "spark/md/SecurityDB.h"
#include "IDGenerator.h"
#include "lib/config/config.h"
#include "lib/config/protos/exchange_sim_cfg.pb.h"
#include "lib/domain_model/Security.h"
#include "lib/logging/logging.h"
#include "lib/md/MBOProcessor.h"
#include "lib/md/MDProducer.h"
#include "lib/md/Shm/FixedSecurity.h"
#include "lib/md/Shm/MDStructure.h"
#include "lib/orderman/orderman_utils/fix_order_codec.h"
#include "lib/persistence/SqliteStore.h"
#include "lib/utils/Dispatcher.h"
#include "lib/utils/datetime.h"
#include "spark/config/config.h"
#include "spark/config/protos/exchange_sim_cfg.pb.h"
#include "spark/domain_model/Security.h"
#include "spark/logging/logging.h"
#include "spark/md/MBOProcessor.h"
#include "spark/md/MDProducer.h"
#include "spark/md/Shm/FixedSecurity.h"
#include "spark/md/Shm/MDStructure.h"
#include "spark/orderman/orderman_utils/fix_order_codec.h"
#include "spark/persistence/SqliteStore.h"
#include "spark/utils/Dispatcher.h"
#include "spark/utils/datetime.h"
#include "server/sparkd/exchange_sim/book/Order.h"
#include "server/sparkd/exchange_sim/book/OrderMatcher.h"
#include "server/sparkd/exchange_sim/book/book_transform.h"
@@ -22,7 +22,7 @@
#ifndef ORDERMATCH_APPLICATION_H
#define ORDERMATCH_APPLICATION_H
#include "lib/utils/warn_ctrl.h"
#include "spark/utils/warn_ctrl.h"
GCC_DIAG_OFF("-Woverloaded-virtual")
GCC_DIAG_OFF("-Wdeprecated")
@@ -37,7 +37,7 @@ GCC_DIAG_OFF("-Wignored-qualifiers")
#include <quickfix/Utility.h>
#include <quickfix/Values.h>
#include "lib/domain_model/Security.pb.h"
#include "spark/domain_model/Security.pb.h"
#include "server/sparkd/exchange_sim/IMDPlayerObserver.h"
#include <quickfix/fix42/NewOrderSingle.h>
#include <quickfix/fix42/OrderCancelRequest.h>
@@ -1,7 +1,7 @@
#pragma once
#include "lib/md/PriceSize.h"
#include "lib/md/Shm/MDStructure.h"
#include "spark/md/PriceSize.h"
#include "spark/md/Shm/MDStructure.h"
namespace bts {
namespace api {
@@ -1,8 +1,8 @@
#pragma once
#include "lib/core/FMT_IMPL.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/orderman/orderman_utils/orderman_common.h"
#include "spark/core/FMT_IMPL.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "server/sparkd/exchange_sim/book/Order.h"
#include <memory>
@@ -1,11 +1,11 @@
#pragma once
#include "lib/api/services/OrderService.pb.h"
#include "lib/domain_model/Security.pb.h"
#include "lib/domain_model/common.h"
#include "lib/orderman/orderman_utils/orderman_common.h"
#include "lib/utils/PBUtils.h"
#include "lib/utils/bts_chrono.h"
#include "spark/api/services/OrderService.pb.h"
#include "spark/domain_model/Security.pb.h"
#include "spark/domain_model/common.h"
#include "spark/orderman/orderman_utils/orderman_common.h"
#include "spark/utils/PBUtils.h"
#include "spark/utils/bts_chrono.h"
#include "server/sparkd/exchange_sim/book/ExchangeSim.pb.h"
#include <memory>
Loaded 100 of 1699 files, more files were not shown because too many files have changed in this diff. Show more