NAME

Finance::Quote::Casablanca - download Casablanca Stock Exchange quotes

SYNOPSIS

use Finance::Quote;
my $fq = Finance::Quote->new ('-defaults', 'Casablanca');
my %quotes = $fq->fetch('casablanca','MNG','BCE');

DESCRIPTION

This module downloads stock quotes from the Casablanca Stock Exchange,

Using pages like,

The web site terms can be found at the end of the home page. As of June 2009 reproduction of information is for personal private use.

Quotes are delayed by 20 minutes.

FIELDS

The following standard F-Q fields are available

date isodate name currency
bid ask
open high low last close p_change volume
year_range
eps
div ex_div div_yield
cap
method source success errormsg

ex_div is in ISO YYYY-MM-DD format, or in the current implementation it's omitted from the return if there's no dividend at all.

Plus the following extra fields

bid_quantity      number of shares at the bid
ask_quantity      number of shares offered at the ask
dollar_volume_both_sides
year_high         \ as per year_range
year_low          /
net_profit        total company profit
payout_percent    how much of net profit paid as dividends
par_value         of each share
shares_on_issue
nominal_capital   par_value * shares_on_issue

cap (market capitalization) is last times shares_on_issue. net_profit is eps times shares_on_issue.

dollar_volume_both_sides is so named since it seems to add both buyer's dollar value and seller's dollar value, ie. it's roughly "2 * last * volume".

SEE ALSO

Finance::Quote, LWP

Casablanca Stock Exchange web site http://www.casablanca-bourse.com

HOME PAGE

http://www.geocities.com/user42_kevin/finance-quote-grab/

LICENCE

Copyright 2008, 2009 Kevin Ryde

Finance-Quote-Grab 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, or (at your option) any later version.

Finance-Quote-Grab 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-Quote-Grab; see the file COPYING. If not, see http://www.gnu.org/licenses/.