Skip to content

Commit 926a44d

Browse files
committed
feat: Implement core trading engine functionality with gRPC API
- Added Constants.cpp and Constants.hpp for price constants. - Created README.md with project overview, features, requirements, and build instructions. - Developed build.sh script for streamlined project building and management. - Configured tests using Google Test framework in tests/CMakeLists.txt. - Implemented unit tests for Order and Orderbook classes in test_order.cpp and test_orderbook.cpp. - Added TradingEngineServer class with gRPC methods for order management in test_trading_engine_server.cpp. - Defined trading protocol buffers in trading_optimized.proto for order requests and responses.
1 parent 4665555 commit 926a44d

18 files changed

Lines changed: 2262 additions & 14 deletions

.env

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Trading Engine Development Configuration
2+
3+
# Build Settings
4+
BUILD_TYPE=Release
5+
ENABLE_TESTING=ON
6+
ENABLE_SANITIZERS=OFF
7+
8+
# Server Settings
9+
SERVER_PORT=5001
10+
SERVER_ADDRESS=0.0.0.0
11+
12+
# Performance Settings
13+
THREAD_COUNT=auto
14+
MAX_ORDERS=1000000
15+
PRICE_PRECISION=2
16+
17+
# Logging Settings
18+
LOG_LEVEL=INFO
19+
LOG_FILE=trading_server.log
20+
ENABLE_CONSOLE_LOG=true
21+
22+
# Development Settings
23+
ENABLE_DEBUG_INFO=false
24+
ENABLE_PROFILING=false

0 commit comments

Comments
 (0)