apple-quant-algorithmic 0.4.0

Apple Quant's algorithmic library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::{InstrumentKind, InstrumentSpec, XSpec025, XSpec100};

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct NQ;

impl InstrumentSpec for NQ {
	const INSTRUMENT_KIND: InstrumentKind = InstrumentKind::Future;
	const BARE_SYMBOL: &'static str = "NQ";

	type PriceSpec = XSpec025;
	type VolumeSpec = XSpec100;
	type PriceType = i32;
	type VolumeType = i32;
}