pub struct MFInstrument {Show 15 fields
pub trading_symbol: String,
pub amc: String,
pub name: String,
pub fund_type: Option<String>,
pub plan: String,
pub settlement_type: String,
pub minimum_purchase_amount: f64,
pub purchase_amount_multiplier: f64,
pub minimum_additional_purchase_amount: f64,
pub minimum_redemption_quantity: f64,
pub redemption_quantity_multiplier: f64,
pub dividend_type: String,
pub scheme_type: String,
pub last_price: f64,
pub last_price_date: NaiveDate,
}
Expand description
Mutual Fund instrument data
Fields§
§trading_symbol: String
Trading symbol (unique identifier)
amc: String
AMC (Asset Management Company) code
name: String
Fund name
fund_type: Option<String>
Fund type (legacy alias, not present in CSV; prefer dividend_type
/scheme_type
)
plan: String
Fund category (equity, debt, hybrid, etc.)
settlement_type: String
Settlement type (T+1, T+3, etc.)
minimum_purchase_amount: f64
Minimum purchase amount
purchase_amount_multiplier: f64
Purchase amount multiple
minimum_additional_purchase_amount: f64
Minimum additional purchase amount
minimum_redemption_quantity: f64
Minimum redemption quantity
redemption_quantity_multiplier: f64
Redemption quantity multiple
dividend_type: String
Dividend reinvestment flag (growth/dividend)
scheme_type: String
Scheme type (equity, elss, etc.)
last_price: f64
Last price (NAV)
last_price_date: NaiveDate
Last price date
Implementations§
Source§impl MFInstrument
impl MFInstrument
Sourcepub fn is_equity_fund(&self) -> bool
pub fn is_equity_fund(&self) -> bool
Check if this is an equity fund
Sourcepub fn is_debt_fund(&self) -> bool
pub fn is_debt_fund(&self) -> bool
Check if this is a debt fund
Sourcepub fn is_hybrid_fund(&self) -> bool
pub fn is_hybrid_fund(&self) -> bool
Check if this is a hybrid fund
Sourcepub fn is_growth_plan(&self) -> bool
pub fn is_growth_plan(&self) -> bool
Check if this is a growth plan
Sourcepub fn is_dividend_plan(&self) -> bool
pub fn is_dividend_plan(&self) -> bool
Check if this is a dividend plan
Sourcepub fn allows_sip(&self) -> bool
pub fn allows_sip(&self) -> bool
Check if fund allows SIP
Sourcepub fn settlement_days(&self) -> u32
pub fn settlement_days(&self) -> u32
Get the settlement days
Sourcepub fn is_valid_purchase_amount(&self, amount: f64) -> bool
pub fn is_valid_purchase_amount(&self, amount: f64) -> bool
Check if amount is valid for purchase
Sourcepub fn next_valid_purchase_amount(&self, amount: f64) -> f64
pub fn next_valid_purchase_amount(&self, amount: f64) -> f64
Get next valid purchase amount
Trait Implementations§
Source§impl Clone for MFInstrument
impl Clone for MFInstrument
Source§fn clone(&self) -> MFInstrument
fn clone(&self) -> MFInstrument
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more