The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

schnapp - show the best dividend yield of your stocks

SYNOPSIS

 schnapp [--help]
 schnapp [--index=i] [--max=count] [--type=t]

DESCRIPTION

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.

OPTIONS

--help

A short message listing the purpose and the options of the program.

--index=index

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).

--max=count

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.

--type=type

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.

--version

Shows the version and exits.

ENVIRONMENT

$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.

FILES

$HOME/.beancounterrc

The configuration file for beancounter is used to get access to the database.

NOTES

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.

SEE ALSO

beancounter(1p)

AUTHOR

Copyright 2002-2005 by Mathias Weidner

COPYRIGHT AND LICENSE

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.

HISTORY

 2005-02-10 mw Copyright, License, Manpage, Option '--version'
 2002       mw Initial Version