trading_data 0.3.0

Trading data collection and processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait Clock: Send + Sync {
	fn now_ns(&self) -> i64;
}

pub struct LiveClock;

impl Clock for LiveClock {
	fn now_ns(&self) -> i64 {
		jiff::Timestamp::now().as_nanosecond() as i64
	}
}