apple-quant-algorithmic 0.2.0

Apple Quant's algorithmic trading api
Documentation
use smallstr::SmallString;

use super::InstrumentKind;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct InstrumentTicker {
	bare_symbol: SmallString<[u8; 3]>,
	instrument_kind: InstrumentKind,
}

impl InstrumentTicker {
	pub fn bare_symbol(&self) -> &str {
		&self.bare_symbol
	}

	pub fn instrument_kind(&self) -> InstrumentKind {
		self.instrument_kind
	}
}