Delete per-service proto/ directories. All 7 services now compile from the single canonical proto/ at workspace root. - trading_service: 5 protos + ml_training client -> ../../proto/ - ml_training_service: ml_training server + fxt_trading client -> ../../proto/ - broker_gateway_service: broker_gateway -> ../../proto/ - trading_agent_service: trading_agent + ml client -> ../../proto/ - data_acquisition_service: data_acquisition -> ../../proto/ - api_gateway: 8 proto compilations -> ../../proto/ - monitoring_service: keeps local proto (3 training RPCs only, deleted in Task 5) Added proto/fxt_trading.proto (fat-client proto, package foxhunt.tli) separate from proto/trading.proto (backend, package trading) since the API gateway needs both for protocol translation. Added unimplemented stubs for merged monitoring.proto RPCs: - trading_service: 3 training RPCs (served by monitoring_service) - api_gateway monitoring_proxy: 13 system health RPCs (Task 4) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
trading_service
Core execution engine for order placement, position keeping, risk integration, and real-time P&L tracking.
Key Types
TradingServiceImpl-- main gRPC serviceOrderExecutor-- high-throughput order handlingPositionManager-- real-time position and P&L trackingRiskIntegration-- pre-trade and post-trade compliance
gRPC Endpoints
PlaceOrder-- submit new ordersCancelOrder-- cancel existing ordersGetPosition-- query current positionsSubscribeMarketData-- market data feedsGetPnlUpdates-- real-time P&L updates
Configuration
GRPC_PORT-- gRPC listen portDATABASE_URL-- PostgreSQL connection stringTLS_ENABLED-- enable TLS 1.3 (default: false)TLS_CERT_PATH,TLS_KEY_PATH,TLS_CA_PATH-- TLS certificatesTLS_REQUIRE_CLIENT_CERT-- mutual TLS (default: false)
Testing
SQLX_OFFLINE=true cargo test -p trading_service --lib