borderbook 0.1.0

Limit orderbook and matching implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Clone, Copy, Debug)]
pub struct Order {
    pub price: f64,
    pub volume: f64,
}

impl Order {
    pub fn cost(&self) -> f64 {
        self.price * self.volume
    }
}