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

NAME

Finance::Quote::MGEX - download Minneapolis Grain Exchange quotes

SYNOPSIS

 use Finance::Quote;
 my $fq = Finance::Quote->new ('MGEX');
 my %quotes = $fq->fetch('mgex', 'MWZ11');

DESCRIPTION

This module downloads commodity futures quotes from the Minneapolis Grain Exchange (MGEX),

    http://www.mgex.com

Using the futures page

    http://www.mgex.com/data_charts.html

which is

    http://sites.barchart.com/pl/mgex/aquotes.htx
    http://sites.barchart.com/pl/mgex/wquotes_js.js

Symbols

The available symbols are for example

    MWZ11      Minneapolis wheat
    KEZ11      Kansas wheat
    ZWZ11      CBOT wheat

    ICU11      national corn index
    IHU11      hard red winter wheat index
    IPU11      hard red spring wheat index
    ISU11      national soybean index
    IWU11      soft red spring wheat index

The "Z11" or "U11" is the contract month letter and the year "11" for 2011. The month letters are the usual U.S. futures style

    F    January
    G    February
    H    March
    J    April
    K    May
    M    June
    N    July
    Q    August
    U    September
    V    October
    X    November
    Z    December

Fields

The following standard F-Q fields are returned

    name currency
    bid ask
    open high low last close net
    method source success errormsg

Plus the following extras

    time                  ISO string "HH:MM"
    contract_month_iso    ISO format YYYY-MM-DD contract month

Prices on the web pages are in eighths but are always returned here as decimals so they can be used arithmetically. For instance "195-2" meaning 195 2/8 becomes "195.25".

SEE ALSO

Finance::Quote, LWP

MGEX web site http://www.mgex.com

HOME PAGE

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

LICENCE

Copyright 2008, 2009, 2010, 2011 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/