🔧 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:
@@ -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
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user