use crate::{
currencies::currency::Currency,
indices::marketindex::{MarketIndex, MarketIndexDetails},
rates::interestrate::RateDefinition,
time::calendar::Calendar,
};
pub trait RateIndexDetails: MarketIndexDetails {
fn currency(&self) -> Currency;
fn calendar(&self) -> Calendar;
fn rate_definition(&self) -> RateDefinition;
fn fixing_lag(&self) -> i64;
fn market_index(&self) -> MarketIndex;
fn is_in_arrears(&self) -> bool {
true
}
}