apple-quant-algorithmic 0.1.0

Apple Quant's algorithmic trading api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::timestamp::{Timestamp, Timestamped};

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct LatestSessionStart(Timestamp);

impl LatestSessionStart {
	pub fn new(timestamp: Timestamp) -> Self {
		Self(timestamp)
	}
}

impl Timestamped for LatestSessionStart {
	fn timestamp(&self) -> &Timestamp {
		&self.0
	}
}