Files
jgrusewski 5b9995c6f5 chore(services): drop unused declared deps (cargo-machete cleanup)
Remove dependencies declared in 5 service Cargo.toml files that no
source code in those services references (verified by grepping for
use statements). Reduces dep-graph fan-out and unnecessary recompiles.

  services/api/Cargo.toml             −16 deps  (async-trait, bytes,
                                                 const-oid, hdrhistogram,
                                                 hex, http-body, hyper,
                                                 hyper-util, num-traits,
                                                 rust_decimal, tokio-stream,
                                                 tower-layer, tower-service,
                                                 tracing-subscriber,
                                                 trading_engine, zeroize.
                                                 + json feature added to
                                                 reqwest since trading_engine
                                                 was enabling it transitively)
  services/trading_service/Cargo.toml −11 deps
  services/backtesting_service/Cargo.toml −17 deps
  services/trading_agent_service/Cargo.toml −6 deps
  services/ml_training_service/Cargo.toml −4 deps

False positives kept (cargo-machete misses these because they're only
referenced in tonic-generated proto code, not in hand-written src):
  - prost            (`::prost::Message` derive in build.rs-generated code)
  - tonic-prost      (`tonic_prost::ProstCodec::default()` in generated tonic
                     clients/servers)

cargo check --workspace passes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 01:37:49 +02:00
..

trading_agent_service

Portfolio management with autonomous universe selection, asset allocation, and order generation.

Key Types

  • TradingAgentServiceImpl -- main gRPC service
  • AutonomousUniverseManager -- dynamic universe scaling
  • AssetSelector -- instrument selection
  • Allocator -- position sizing and allocation
  • OrderGenerator -- order creation from signals

Configuration

  • ML_SERVICE_URL -- ensemble ML service endpoint
  • TRADING_SERVICE_URL -- order execution endpoint