apple_quant_algorithmic/instrument/ticker.rs
1use smallstr::SmallString;
2
3use super::InstrumentKind;
4
5#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
6pub struct InstrumentTicker {
7 bare_symbol: SmallString<[u8; 3]>,
8 instrument_kind: InstrumentKind,
9}
10
11impl InstrumentTicker {
12 pub fn bare_symbol(&self) -> &str {
13 &self.bare_symbol
14 }
15
16 pub fn instrument_kind(&self) -> InstrumentKind {
17 self.instrument_kind
18 }
19}