Skip to main content

FillModel

Trait FillModel 

Source
pub trait FillModel {
    // Required method
    fn fill(&self, order: &Order, bar: &Bar) -> Option<f64>;
}
Expand description

Decides whether order fills against bar, returning the fill price.

Required Methods§

Source

fn fill(&self, order: &Order, bar: &Bar) -> Option<f64>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§