🔧 Fix import paths: Remove non-existent prelude module references

- Fixed 101+ files importing common::types::prelude which doesn't exist
- Changed all imports to use common::types directly
- Fixed BarEvent duplicate import in data/src/types.rs
- Aligned all imports with canonical type system in common crate
This commit is contained in:
jgrusewski
2025-09-26 19:53:00 +02:00
parent a0ceb4bdfd
commit 72f607759a
117 changed files with 1542 additions and 317 deletions

View File

@@ -61,7 +61,7 @@ use serde::{Deserialize, Serialize};
use tokio::sync::{mpsc, RwLock};
use tracing::{error, info, warn};
use common::types::prelude::*;
use common::types::*;
// mod types; // Removed - using core::prelude types instead

View File

@@ -15,7 +15,7 @@ use statrs::statistics::{Statistics, VarianceN};
use tokio::sync::RwLock;
use tracing::{debug, info, warn};
use common::types::prelude::*;
use common::types::*;
use crate::strategy_tester::{PerformanceSnapshot, TradeRecord};

View File

@@ -13,7 +13,7 @@ use std::{
use anyhow::{Context, Result};
use chrono::{DateTime, Utc};
use common::types::Timestamp;
use common::types::prelude::{Symbol, Decimal, Quantity, MarketEvent, Price};
use common::types::{Symbol, Decimal, Quantity, MarketEvent, Price};
use crossbeam_channel::{bounded, Receiver, Sender};
use dashmap::DashMap;
use serde::{Deserialize, Serialize};

View File

@@ -6,7 +6,7 @@
use anyhow::Result;
use async_trait::async_trait;
use common::types::basic::Side;
use common::types::prelude::*;
use common::types::*;
// Use canonical types from ML module
use ml::{Features, ModelPrediction};

View File

@@ -25,7 +25,7 @@ use common::types::basic::{
};
use common::types::{OrderStatus, OrderType};
use common::types::events::MarketEvent;
use common::types::prelude::*;
use common::types::*;
use uuid::Uuid;
// TECHNICAL DEBT ELIMINATED - Use String and DateTime<Utc> directly
use crate::replay_engine::{MarketReplay, ReplayEvent};