Files
foxhunt/services/backtesting_service
jgrusewski e047c1eea3 refactor: rename all service crates to kebab-case
Rename 7 service binaries from snake_case to kebab-case to match
K8s deployment names. Update Cargo.toml package/bin names, K8s
manifest S3 paths and commands, and cross-crate dependency keys.

- api_gateway → api-gateway
- trading_service → trading-service
- broker_gateway_service → broker-gateway
- ml_training_service → ml-training-service
- backtesting_service → backtesting-service
- trading_agent_service → trading-agent-service
- data_acquisition_service → data-acquisition-service

broker-gateway gets an explicit [lib] name = "broker_gateway_service"
since its new package name maps to broker_gateway (not the original
broker_gateway_service used in source code). All other services map
correctly with Rust's automatic hyphen-to-underscore conversion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 22:06:00 +01:00
..

backtesting_service

Strategy backtesting engine with historical data replay, performance reporting, and results persistence.

Key Types

  • BacktestingServiceImpl -- main gRPC service
  • DataReplayEngine -- historical market data replay
  • PerformanceReporter -- Sharpe, drawdown, win rate metrics

gRPC Endpoints

  • RunBacktest -- submit backtest configuration and strategy
  • GetBacktestResults -- retrieve results for completed backtests
  • ListAvailableStrategies -- list registered strategies
  • GetBacktestReport -- detailed performance report

Configuration

  • GRPC_PORT -- gRPC listen port
  • DATABASE_URL -- PostgreSQL connection string
  • Historical data directory with Parquet tick/OHLCV files

Testing

SQLX_OFFLINE=true cargo test -p backtesting_service --lib