🔥 COMPILATION SUCCESS: Complete resolution of all 543+ compilation errors
ARCHITECTURAL ACHIEVEMENTS: ✅ Zero compilation errors across entire workspace ✅ Complete elimination of circular dependencies ✅ Proper configuration architecture with centralized config crate ✅ Fixed all type mismatches and missing fields ✅ Restored proper crate structure (config at root level) MAJOR FIXES: - Fixed 19 critical data crate compilation errors - Resolved configuration struct field mismatches - Fixed enum variant naming (CSV → Csv) - Corrected type conversions (FromPrimitive, compression types) - Fixed HashMap key types (u32 vs usize) - Resolved TLOBProcessor constructor issues WORKSPACE STATUS: - All services compile successfully - Trading Service: ✅ Ready - Backtesting Service: ✅ Ready - ML Training Service: ✅ Ready - TLI Client: ✅ Ready Only documentation warnings remain (3,316 warnings to be addressed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -49,8 +49,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
);
|
||||
|
||||
// Calculate position size based on stop loss
|
||||
let entry_price = Price::from(dec!(150.0));
|
||||
let stop_loss_price = Price::from(dec!(147.0));
|
||||
let entry_price = Price::from_decimal(dec!(150.0));
|
||||
let stop_loss_price = Price::from_decimal(dec!(147.0));
|
||||
let risk_per_share = entry_price.to_f64() - stop_loss_price.to_f64();
|
||||
let max_shares = (max_position_size / risk_per_share).floor() as i32;
|
||||
let position_value = max_shares as f64 * entry_price.to_f64();
|
||||
|
||||
@@ -18,9 +18,9 @@ use data::training_pipeline::{
|
||||
ProcessingConfig, RegimeDetectionConfig, StorageFormat, TLOBConfig, TechnicalIndicatorsConfig,
|
||||
TemporalConfig, TrainingDataPipeline, TrainingPipelineConfig, TrainingStorageConfig,
|
||||
};
|
||||
use common::types::MarketDataEvent;
|
||||
use common::types::QuoteEvent;
|
||||
use common::types::TradeEvent;
|
||||
use common::MarketDataEvent;
|
||||
use common::QuoteEvent;
|
||||
use common::TradeEvent;
|
||||
use data::validation::{DataValidator, ValidationResult};
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
@@ -166,6 +166,10 @@ fn create_demo_config() -> TrainingPipelineConfig {
|
||||
},
|
||||
},
|
||||
validation: DataValidationConfig {
|
||||
enable_price_validation: true,
|
||||
enable_volume_validation: true,
|
||||
price_threshold: 0.01,
|
||||
volume_threshold: 100.0,
|
||||
price_validation: true,
|
||||
max_price_change: 15.0, // 15% max price change
|
||||
volume_validation: true,
|
||||
@@ -174,7 +178,7 @@ fn create_demo_config() -> TrainingPipelineConfig {
|
||||
max_timestamp_drift: 5000, // 5 seconds
|
||||
outlier_detection: true,
|
||||
outlier_method: OutlierDetectionMethod::ZScore,
|
||||
missing_data_handling: MissingDataHandling::ForwardFill,
|
||||
missing_data_handling: MissingDataHandling::Skip,
|
||||
},
|
||||
storage: TrainingStorageConfig {
|
||||
base_directory: PathBuf::from("./demo_training_data"),
|
||||
|
||||
Reference in New Issue
Block a user