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', 'MWZ19');

DESCRIPTION

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

Using the futures page

which is

Symbols

The available symbols are for example

    MWZ19      Minneapolis wheat
    KEZ19      Kansas wheat
    ZWZ19      CBOT wheat

    ICH19      national corn index
    IHH19      hard red winter wheat index
    IPH19      hard red spring wheat index
    ISH19      national soybean index
    IWH19      soft red spring wheat index

The "Z19" etc is the contract month letter and the year "19" for 2019. 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 Finance::Quote 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, 2013, 2014, 2015, 2016, 2019 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/