use crate::core::{HistoryResponse, Interval, Range, YfError};
#[derive(Debug, Clone, Copy)]
#[allow(clippy::struct_excessive_bools)]
pub struct HistoryRequest {
pub range: Option<Range>,
pub period: Option<(i64, i64)>,
pub interval: Interval,
pub include_prepost: bool,
pub include_actions: bool,
pub auto_adjust: bool,
}
pub trait HistoryService: Send + Sync {
fn fetch_full_history(
&self,
symbol: &str,
req: HistoryRequest,
) -> impl core::future::Future<Output = Result<HistoryResponse, YfError>> + Send;
}