Finance::QuoteDB - User database tools based on Finance::Quote
Please take a look at script/fqdb which is the command-line frontend to Finance::QuoteDB. Type following command at your command prompt for more information:
fqdb --help
new({dsn=>$dsn})
createdb()
updatedb()
updatedbMarketStock($market,\%symbolIDs)
backpopulate($start_date, $end_date, $overwrite, $stocks)
delstock($stocks)
addstock($market,$stocks)
$stocks is in the format FQsymbol[USERsymbol],... If USERsymbol is ommitted then USERsymbol will be set to FQsymbol
getquotes( $USERsymbols, $date_start [,$date_end] )
This function returns quotes between $date_start and $date_end for the specified user symbols (comma separated list). Range will be one day if $date_end is omitted.
dumpquotes ( $USERsymbols, $date_start [,$date_end] )
This function dumps quotes between $date_start and $date_end for the specified user symbols (comma separated list). Range will be one day if $date_end is omitted.
dumpstocks ()
This function dumps the symbols of the stocks in the database.
add_yahoo_stocks( $exchanges , [ $refsearchlist ] )
retrieves yahoo tickers for specified exchanges and stores them in your database NOTE: $exchanges being the ID as coming from yahoo. NYQ for Nyse, PAR for Paris $refsearchlist is an optional reference to a list of search patterns. defaults to [**AA .. **ZZ]
schema()
If necessary, creates a DBIx::Class::Schema and returns a reference to that DBIx::Class::Schema.
today()
returns current date in isodate format
Erik Colson, <eco at ecocode.net>
Please report any bugs or feature requests to bug-finance-quotedb at rt.cpan.org
, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Finance-QuoteDB. I will be
notified, and you'll automatically be notified of progress on your bug as I make
changes.
You can find documentation for this module with the perldoc command.
perldoc Finance::QuoteDB
You can also look for information at:
-
RT: CPAN's request tracker
-
AnnoCPAN: Annotated CPAN documentation
-
CPAN Ratings
-
Search CPAN
-
Mailing list
You can subscribe to the mailing list by sending an email to [email protected] with subject : subscribe
Copyright 2008-2015 Erik Colson, all rights reserved.
This file is part of Finance::QuoteDB.
Finance::QuoteDB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Finance::QuoteDB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Finance::QuoteDB. If not, see <http://www.gnu.org/licenses/>.