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
16
17
use std::range::Range;

use time::UtcDateTime;
use tokio::task::JoinHandle;

use crate::{
	aggregation::TradeTradeTimestamp,
	instrument::{InstrumentSpec, InstrumentTicker},
};

pub(crate) trait HistoricalDataBackend<IS: InstrumentSpec> {
	fn fetch_once(
		&mut self,
		instrument_ticker: &InstrumentTicker,
		utc_date_time_range: Range<UtcDateTime>,
	) -> JoinHandle<impl IntoIterator<Item = TradeTradeTimestamp<IS>>>;
}