schnapp - show the best dividend yield of your stocks
schnapp [--help] schnapp [--index=i] [--max=count] [--type=t]
This programs looks at your beancounter database, takes the last prices and the dividend from stockprices and stockinfo and finally shows you a list of stocks ordered by descending dividend yield.
The dividend yield is determined by dividing the dividend from table stockinfo by day_low from table stockprices and multiplying the result with 100 for each stock.
dividend
day_low
A short message listing the purpose and the options of the program.
You may limit the stocks which will be investigated to a certain stock index that must be known in beancounter (see beancounter addindex ... in the beancounter manual).
beancounter addindex ...
You may limit the count of stocks that will be displayed.
The program lists count stocks with descending dividend yield and thereafter only those stocks that are in the portfolio.
You may limit the stocks of your portfolio which will be displayed to type. This relates to the type in the beancounter portfolio. See the beancounter manpage.
Shows the version and exits.
$HOME
The value of the environment variable $HOME is used to determine the location of the beancounter configuration file.
$PATH
The environment variable $PATH is set to /bin:/usr/bin.
/bin:/usr/bin
The configuration file for beancounter is used to get access to the database.
This program uses the database filled by your daily run of beancounter update but takes only the last dates of each stock. It determines automatically the last date when beancounter updated the stockprices.
beancounter update
beancounter(1p)
Copyright 2002-2005 by Mathias Weidner
This program 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 2 of the License, or (at your option) any later version.
This program 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 this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2005-02-10 mw Copyright, License, Manpage, Option '--version' 2002 mw Initial Version
To install Finance::BeanCounter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::BeanCounter
CPAN shell
perl -MCPAN -e shell install Finance::BeanCounter
For more information on module installation, please visit the detailed CPAN module installation guide.