Quant::Framework::Asset
This module saves/loads dividends data to/from Chronicle. To save dividends for a company:
my $corp_dividends = Quant::Framework::Asset->new(symbol => $symbol, rates => { 1 => 0, 2 => 1, 3=> 0.04 } discrete_points => { '2015-04-24' => 0, '2015-09-09' => 0.134 }); $corp_dividends->save;
To read dividends information for a company:
my $corp_dividends = Quant::Framework::Asset->new(symbol => $symbol); my $rates = $corp_dividends->rates; my $disc_points = $corp_dividends->discrete_points;
Used for more advanced query of Dividen. For simple `rate_for` queries, this is not required.
The date for which we wish data
Saves dividend data to the provided Chronicle storage
The date (and time) that the dividend was recorded, as a Date::Utility.
The discrete dividend points received from provider.
Returns the rate for a particular timeinyears for symbol. ->rate_for(7/365)
Get the dividend rate for this underlying over a given time period (expressed in timeinyears.)
Returns discrete dividend for the given (start,end) dates and dividend recorded date for the underlying specified using `underlying_config`
Returns dividend adjustments for given start/end period
To install Quant::Framework, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quant::Framework
CPAN shell
perl -MCPAN -e shell install Quant::Framework
For more information on module installation, please visit the detailed CPAN module installation guide.