pub struct FXRolloverInterestModule { /* private fields */ }Expand description
Simulates FX rollover (swap) interest applied at 5 PM US/Eastern daily.
When holding FX positions overnight, the interest rate differential between the two currencies is credited or debited. Wednesday and Friday rollovers are tripled (Wednesday for T+2 settlement, Friday for the weekend).
Implementations§
Trait Implementations§
Source§impl Clone for FXRolloverInterestModule
impl Clone for FXRolloverInterestModule
Source§fn clone(&self) -> FXRolloverInterestModule
fn clone(&self) -> FXRolloverInterestModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FXRolloverInterestModule
impl Debug for FXRolloverInterestModule
Source§impl SimulationModule for FXRolloverInterestModule
impl SimulationModule for FXRolloverInterestModule
Source§fn pre_process(&self, _data: &Data)
fn pre_process(&self, _data: &Data)
Pre-processes market data before matching engine processing.
Source§fn process(
&self,
ts_now: UnixNanos,
ctx: &ExchangeContext<'_>,
) -> SimulationModuleResult
fn process( &self, ts_now: UnixNanos, ctx: &ExchangeContext<'_>, ) -> SimulationModuleResult
Processes simulation logic at the given timestamp. Read more
Source§fn acknowledge(&self, outcomes: &[AccountAdjustmentOutcome])
fn acknowledge(&self, outcomes: &[AccountAdjustmentOutcome])
Acknowledges the ordered application outcomes for a completed batch. Read more
Source§fn log_diagnostics(&self)
fn log_diagnostics(&self)
Logs diagnostic information about the module’s state.
Auto Trait Implementations§
impl !Freeze for FXRolloverInterestModule
impl !RefUnwindSafe for FXRolloverInterestModule
impl !Sync for FXRolloverInterestModule
impl Send for FXRolloverInterestModule
impl Unpin for FXRolloverInterestModule
impl UnsafeUnpin for FXRolloverInterestModule
impl UnwindSafe for FXRolloverInterestModule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more