NAME
Quant::Framework::CorporateAction
DESCRIPTION
Represents the corporate actions data of an underlying from database. To read actions for a company:
my $corp = Quant::Framework::CorporateAction->new(symbol => $symbol,
chronicle_reader => $reader);
my $actions = $corp->actions;
To save actions for a company:
my $corp = Quant::Framework::CorporateAction
->new(symbol => $symbol,
chronicle_writer => $writer,
actions => {
1234 => {
monitor_date => "2014-02-07",
type => "ACQUIS",
description => "Acquisition",
effective_date => "15-Jul-15",
flag => "N", #N means new action, U means updated action, D means cancelled action
}});
$corp->save();
ATTRIBUTES
for_date
The date for which we wish data
symbol
Represents underlying symbol
save
This function saves current data for the company's symbol into Chronicle storage.
actions
An hash reference of corporate reference for an underlying