Quant::Framework::ImpliedRate - A module to save/load implied interest rates for currencies
This module saves/loads implied interest rate data to/from Chronicle.
my $ir_data = Quant::Framework::ImpliedRate->new(symbol => 'USD-EUR', rates => { 7 => 0.5, 30 => 1.2, 90 => 2.4 }); $ir_data->save;
To read implied interest rates for a currency:
my $ir_data = Quant::Framework::ImpliedRate->new(symbol => 'USD-EUR'); my $rates = $ir_data->rates;
The date for which we wish data
The document that this object is tied to.
Save the document into Chronicle data-store
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.