Files
foxhunt/crates/trading_engine
jgrusewski db6462ba7a fix(clippy): resolve all clippy warnings across entire workspace (--all-targets)
Systematic fix of 360+ clippy errors across 37+ crates covering lib,
test, bench, and example targets. Key changes:

- Add targeted #[allow(...)] on #[cfg(test)] modules for test-only lints
  (assertions_on_result_states, float_cmp, str_to_string, indexing, etc.)
- Feature-gate broken integration tests behind __<crate>_integration flags
  where public APIs changed (trading-service, backtesting-service, etc.)
- Remove dead [[test]] entries from Cargo.toml files pointing to deleted files
- Fix production code: field_reassign_with_default, manual_range_contains,
  assert!(false) → panic!(), format!("{}") simplification, len() > 0 → !is_empty()
- Delete truly unused code (Order struct, unused methods/fields/variants)
- Convert sqlx::query!() to sqlx::query() for SQLX_OFFLINE compatibility

Result: cargo clippy --workspace --all-targets -- -D warnings = 0 errors, 0 warnings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:18:35 +01:00
..

trading_engine

High-performance execution core for HFT — RDTSC timing, SIMD processing, lock-free data structures.

Key Types

  • TradingEngine — central execution engine
  • OrderManager — order lifecycle management (placement, execution, cancellation)
  • IbAdapter — Interactive Brokers connectivity
  • IcMarketsAdapter — ICMarkets FIX 4.4 connectivity

Features

  • RDTSC for sub-microsecond timing, CPU affinity for dedicated core execution
  • SIMD-accelerated data processing
  • Lock-free concurrent queues and ring buffers
  • Event-sourced architecture for deterministic state reconstruction
  • Multi-broker connectivity (IB TWS, ICMarkets)

Usage

use trading_engine::engine::TradingEngine;
let mut engine = TradingEngine::new();
engine.connect_broker(BrokerType::InteractiveBrokers).await?;
let order_id = engine.place_order(order).await?;