apple_quant_algorithmic/instrument/future.rs
1use super::{InstrumentKind, InstrumentSpec, XSpec025, XSpec100};
2
3#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
4pub struct NQ;
5
6impl InstrumentSpec for NQ {
7 const INSTRUMENT_KIND: InstrumentKind = InstrumentKind::Future;
8 const BARE_SYMBOL: &'static str = "NQ";
9
10 type PriceSpec = XSpec025;
11 type VolumeSpec = XSpec100;
12 type PriceType = i32;
13 type VolumeType = i32;
14}