LatencyModel

Trait LatencyModel 

Source
pub trait LatencyModel: Debug {
    // Required methods
    fn get_insert_latency(&self) -> UnixNanos;
    fn get_update_latency(&self) -> UnixNanos;
    fn get_delete_latency(&self) -> UnixNanos;
    fn get_base_latency(&self) -> UnixNanos;
}
Expand description

Trait for latency models used in backtesting.

Latency models simulate network delays for order operations during backtesting. Implementations can provide static or dynamic (jittered) latency values.

Required Methods§

Source

fn get_insert_latency(&self) -> UnixNanos

Returns the latency for order insertion operations.

Source

fn get_update_latency(&self) -> UnixNanos

Returns the latency for order update/modify operations.

Source

fn get_delete_latency(&self) -> UnixNanos

Returns the latency for order delete/cancel operations.

Source

fn get_base_latency(&self) -> UnixNanos

Returns the base latency component.

Implementors§