Skip to main content

TickSchemeRule

Trait TickSchemeRule 

Source
pub trait TickSchemeRule: Display {
    // Required methods
    fn next_bid_price(&self, value: f64, n: i32, precision: u8) -> Option<Price>;
    fn next_ask_price(&self, value: f64, n: i32, precision: u8) -> Option<Price>;
}

Required Methods§

Source

fn next_bid_price(&self, value: f64, n: i32, precision: u8) -> Option<Price>

Source

fn next_ask_price(&self, value: f64, n: i32, precision: u8) -> Option<Price>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§