🔧 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:
@@ -43,7 +43,7 @@ pub struct HFTOrder {
|
||||
}
|
||||
|
||||
// OrderSide now imported from canonical source
|
||||
use common::types::prelude::OrderSide;
|
||||
use common::types::OrderSide;
|
||||
|
||||
/// High-performance market data tick
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
||||
@@ -11,7 +11,7 @@ use broker_execution::{
|
||||
BrokerExecutionState, ExecutionRequest, BrokerType,
|
||||
Instrument, AssetType, Side, OrderType, TimeInForce
|
||||
};
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_real_broker_execution_state_creation() {
|
||||
|
||||
@@ -15,7 +15,7 @@ use tokio::task::JoinSet;
|
||||
use futures::future::join_all;
|
||||
use proptest::prelude::*;
|
||||
use criterion::black_box;
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
/// Concurrency test configuration for high-throughput scenarios
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -40,7 +40,7 @@ pub struct MockOrder {
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
// OrderSide and OrderType now imported from canonical source
|
||||
use common::types::prelude::{OrderSide, OrderType};
|
||||
use common::types::{OrderSide, OrderType};
|
||||
|
||||
// OrderType now imported from canonical source above
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
|
||||
|
||||
use tokio::time::timeout;
|
||||
// Import types from canonical types crate
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
// Define test framework types locally for now
|
||||
type TestResult<T> = Result<T, TestSafetyError>;
|
||||
|
||||
@@ -28,7 +28,7 @@ use std::collections::HashMap;
|
||||
use tokio::time::timeout;
|
||||
|
||||
// Import unified types
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
// Import risk and safety systems
|
||||
use risk::prelude::*;
|
||||
|
||||
@@ -18,7 +18,7 @@ use trading_engine::features::unified_extractor::{
|
||||
DatabentoBuData, BenzingaNewsData, NewsArticle, SentimentScore,
|
||||
AnalystRating, UnusualOptionsActivity,
|
||||
};
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
use common::types::QuoteEvent;
|
||||
|
||||
// Test fixtures and mock data generators
|
||||
|
||||
@@ -24,7 +24,7 @@ use foxhunt_data::{
|
||||
TLOBConfig, TemporalConfig, RegimeDetectionConfig, MACDConfig
|
||||
},
|
||||
};
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
// Test fixtures and helpers
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
use std::time::{Duration, Instant};
|
||||
use tokio::time::timeout;
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// Note: ML models not yet available - commenting out for compilation
|
||||
// use ml::{
|
||||
// MLModel, ModelRegistry, TLOBTransformer, MAMBAModel,
|
||||
|
||||
@@ -512,7 +512,7 @@ struct TestOrder {
|
||||
|
||||
#[derive(Debug)]
|
||||
// OrderSide now imported from canonical source
|
||||
use common::types::prelude::OrderSide;
|
||||
use common::types::OrderSide;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct TestOrderProcessor;
|
||||
|
||||
@@ -458,7 +458,7 @@ struct IcebergOrder {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
// OrderSide now imported from canonical source
|
||||
use common::types::prelude::OrderSide;
|
||||
use common::types::OrderSide;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct OrderSlice {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Tests order routing, execution algorithms, and venue selection
|
||||
//! with focus on best execution and latency optimization.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// CANONICAL TYPE IMPORTS - Use types::prelude::Decimal
|
||||
use std::collections::HashMap;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Tests mathematical accuracy, edge cases, and precision requirements
|
||||
//! for financial calculations in the trading system.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// CANONICAL TYPE IMPORTS - Use types::prelude::Decimal
|
||||
use proptest::prelude::*;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Tests risk controls, position limits, and safety mechanisms
|
||||
//! with focus on preventing financial losses.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// CANONICAL TYPE IMPORTS - Use types::prelude::Decimal
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Tests order processing, matching engine, and trade execution logic
|
||||
//! with focus on correctness and edge case handling.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// CANONICAL TYPE IMPORTS - Use types::prelude::Decimal
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Tests the fundamental types that underpin the entire trading system,
|
||||
//! with focus on precision, validation, and safety.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! Common testing utilities shared across all test modules.
|
||||
|
||||
use common::types::prelude::*;
|
||||
use common::types::*;
|
||||
// CANONICAL TYPE IMPORTS - Use types::prelude::Decimal
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user