pub struct Asset<L: ?Sized, E: ?Sized, D: NpyDTyped + Clone> {
pub local: Box<L>,
pub exch: Box<E>,
pub reader: Reader<D>,
}
impl<L, E, D: NpyDTyped + Clone> Asset<L, E, D> {
pub fn new(local: L, exch: E, reader: Reader<D>) -> Self
pub fn l2_builder<LM, AT, QM, MD, FM>() -> L2AssetBuilder<LM, AT, QM, MD, FM>
where
AT: AssetType + Clone + 'static,
MD: MarketDepth + L2MarketDepth + 'static,
QM: QueueModel<MD> + 'static,
LM: LatencyModel + Clone + 'static,
FM: FeeModel + Clone + 'static
pub fn l3_builder<LM, AT, QM, MD, FM>() -> L3AssetBuilder<LM, AT, QM, MD, FM>
where
AT: AssetType + Clone + 'static,
MD: MarketDepth + L3MarketDepth + 'static,
QM: L3QueueModel<MD> + 'static,
LM: LatencyModel + Clone + 'static,
FM: FeeModel + Clone + 'static,
BacktestError: From<<MD as L3MarketDepth>::Error>
}