Move 17 library crates into crates/, CLI binary into bin/fxt, consolidate 10 test crates into testing/, split config crate from deployment config files. Root directory reduced from 38+ to ~17 directories. All Cargo.toml paths and build.rs proto refs updated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
988 B
Rust
34 lines
988 B
Rust
//! Constants for ML labeling operations
|
|
|
|
/// Default profit target in basis points (1%)
|
|
pub const DEFAULT_PROFIT_TARGET_BPS: u32 = 100;
|
|
|
|
/// Default stop loss in basis points (0.5%)
|
|
pub const DEFAULT_STOP_LOSS_BPS: u32 = 50;
|
|
|
|
/// Default maximum holding period (1 hour in nanoseconds)
|
|
pub const DEFAULT_MAX_HOLDING_PERIOD_NS: u64 = 3600_000_000_000;
|
|
|
|
/// Minimum return threshold in basis points
|
|
pub const MIN_RETURN_THRESHOLD_BPS: i32 = 5;
|
|
|
|
/// Maximum batch size for `GPU` processing
|
|
pub const MAX_GPU_BATCH_SIZE: usize = 8192;
|
|
|
|
/// Maximum batch size for CPU processing
|
|
pub const MAX_CPU_BATCH_SIZE: usize = 1024;
|
|
|
|
/// Nanoseconds per microsecond
|
|
pub const NANOS_PER_MICRO: u64 = 1_000;
|
|
|
|
/// Nanoseconds per millisecond
|
|
pub const NANOS_PER_MILLI: u64 = 1_000_000;
|
|
|
|
/// Nanoseconds per second
|
|
pub const NANOS_PER_SECOND: u64 = 1_000_000_000;
|
|
|
|
/// Basis points per unit (10,000)
|
|
pub const BASIS_POINTS_PER_UNIT: u32 = 10_000;
|
|
|
|
/// Cents per dollar
|
|
pub const CENTS_PER_DOLLAR: u32 = 100; |