pub struct FxRateServiceConfig {
pub base_currency: String,
pub mean_reversion_speed: f64,
pub long_term_mean: f64,
pub daily_volatility: f64,
pub fat_tail_probability: f64,
pub fat_tail_multiplier: f64,
pub currencies: Vec<String>,
pub include_weekends: bool,
}Expand description
Configuration for FX rate generation.
Fields§
§base_currency: StringBase currency for all rates.
mean_reversion_speed: f64Mean reversion speed (theta) - higher = faster reversion.
long_term_mean: f64Long-term mean level (typically 0 for log returns).
daily_volatility: f64Daily volatility (sigma) - typical FX volatility is 0.5-1% daily.
fat_tail_probability: f64Probability of fat-tail event (2x volatility).
fat_tail_multiplier: f64Fat-tail multiplier.
currencies: Vec<String>Currencies to generate rates for.
include_weekends: boolWhether to generate weekend rates (or skip weekends).
Trait Implementations§
Source§impl Clone for FxRateServiceConfig
impl Clone for FxRateServiceConfig
Source§fn clone(&self) -> FxRateServiceConfig
fn clone(&self) -> FxRateServiceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FxRateServiceConfig
impl Debug for FxRateServiceConfig
Auto Trait Implementations§
impl Freeze for FxRateServiceConfig
impl RefUnwindSafe for FxRateServiceConfig
impl Send for FxRateServiceConfig
impl Sync for FxRateServiceConfig
impl Unpin for FxRateServiceConfig
impl UnwindSafe for FxRateServiceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more