🔧 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:
@@ -276,7 +276,7 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::types::*;
|
||||
use common::types::events::OrderEventType;
|
||||
use common::types::prelude::{
|
||||
use common::types::{
|
||||
dec, Decimal, OrderId, OrderSide, OrderStatus, OrderType, Quantity, Symbol,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use tokio::time::{sleep, Duration};
|
||||
use tracing::{info, warn};
|
||||
|
||||
use super::{BrokerAdapter, BrokerFactory, IBConfig, InteractiveBrokersAdapter};
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
/// Basic connection example
|
||||
pub async fn basic_connection_example() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
|
||||
@@ -33,7 +33,7 @@ use trading_engine::trading_operations::TradingOrder;
|
||||
|
||||
// Standard library imports for async traits
|
||||
// Use canonical types from prelude (includes OrderId, OrderType, Order, Symbol, Side, etc.)
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
/// Interactive Brokers configuration
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
@@ -22,7 +22,7 @@ use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::RwLock;
|
||||
use tracing::info;
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
// Import shared training configuration from foxhunt-config-crate
|
||||
use config::{
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
//! Data types for market data and broker integration
|
||||
|
||||
use crate::providers::common::BarEvent;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
/// Time range for historical data queries
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
|
||||
@@ -15,7 +15,7 @@ use config::{DataValidationConfig, OutlierDetectionMethod};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::{HashMap, VecDeque};
|
||||
use tracing::info;
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
/// Data validation result
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user