pub use paft::aggregates::Snapshot;
pub use paft::market::action::Action;
pub use paft::market::quote::Quote;
pub use paft::market::requests::history::{Interval, Range};
pub use paft::market::responses::history::{
AdjustmentAnchor, AdjustmentMethod, Candle, CorporateActionAdjustmentCause,
CorporateActionAdjustmentCauses, HistoryMeta, HistoryResponse, Ohlc, OhlcPriceBasis,
PriceBasis,
};
use paft::money::Price;
use serde::{Deserialize, Serialize};
#[non_exhaustive]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct FastInfo {
pub snapshot: Snapshot,
pub moving_averages: MovingAverages,
}
#[non_exhaustive]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
pub struct MovingAverages {
pub fifty_day: Option<Price>,
pub two_hundred_day: Option<Price>,
}
pub(crate) const fn range_as_str(range: Range) -> &'static str {
range.code()
}
pub(crate) const fn interval_as_str(interval: Interval) -> &'static str {
interval.code()
}