Skip to main content

execute

Function execute 

Source
pub fn execute(
    orders: &[Order],
    starts: &[OffsetDateTime],
    prices: &[f64],
    storage: &Storage,
    hours: f64,
) -> (Vec<Fill>, f64)
Expand description

Paper execution of orders against published prices (one per unit starting at starts): a sell fills at a price at or above its limit, a buy at or below; the storage’s window holds. Returns the fills and the revenue, €.