Finance::GeniusTrader::DB::CSV - Access to a text files by DBI::CSV
This module handels the access to textfiles by using the DBI:File-module.
You can put some configuration items in ~/.gt/options to indicate where the database is.
Finance::GeniusTrader::DB::csv->new()
Creates a new database-object
$db->disconnect
Disconnects from the database.
$db->init_table($code)
Creates the table of stock $code.
$db->init_add_info()
Creates the addinfo-table.
Creates the shares-table.
$db->get_prices($code)
Returns a Finance::GeniusTrader::Prices object containing all known prices for the symbol $code.
$db->get_last_prices($code, $limit)
Returns a Finance::GeniusTrader::Prices object containing the $limit last known prices for the symbol $code.
$db->insert($code)
$db->get( parameters )
Get the datasets where all the parameters match
$db->available( $code, $date )
Returns 1 if a dataset for the corresponding day is available.
Delete the datasets where all the parameters match
$db->edit( parameters )
Edit the dataset where the date and the code matches
$db->table_exists($code)
Test if a table for stock $code already exists
$db->get_db_name($code)
Returns the name of the stock designated by $code.
$db->get_db_code($name)
Returns the code of the stock designated by $name.
$db->get_add_info($code,$date)
Returns an additional information about the stock
$db->set_add_info($value, $info, $code, $date)
Set an additional information about the stock
$db->update_from_source($code)
This function is getting the actual information from the web.
$db->get_all_prices($code)
Dummy function. Need to define a clear interface for the exchange.
$db->merge_from_source($source, $code)
Merges the content of an other database/source into the current db. This needs to be updated with a "ranking" algorithm.
$db->merge_all_from_source($source)
Merges the content of all shares in an other database/source into the current db.
$db->update_all_from_source($source)
Updates all shares from a source.
To install Finance::GeniusTrader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::GeniusTrader
CPAN shell
perl -MCPAN -e shell install Finance::GeniusTrader
For more information on module installation, please visit the detailed CPAN module installation guide.