NAME

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

SYNOPSIS

 use Finance::Quote;
 my $fq = Finance::Quote->new ('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. It's your responsibility to ensure your use of this module complies with current and future terms.

Quotes are delayed by 20 minutes.

Fields

The following standard Finance::Quote 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 if no dividend at all then the field is omitted.

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 the buyer's dollar value and seller's dollar value, ie. roughly "2 * last * volume".

SEE ALSO

Finance::Quote, LWP

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

HOME PAGE

http://user42.tuxfamily.org/finance-quote-grab/index.html

LICENCE

Copyright 2008, 2009, 2010, 2011, 2014, 2015, 2016 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/.