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
use super::{InstrumentKind, InstrumentSpec, XSpec025, XSpec100};

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
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;
}