Finance::Quote::MGEX - download Minneapolis Grain Exchange quotes
use Finance::Quote; my $fq = Finance::Quote->new ('MGEX'); my %quotes = $fq->fetch('mgex', 'MWZ15');
This module downloads commodity futures quotes from the Minneapolis Grain Exchange (MGEX),
Using the futures page
The available symbols are for example
MWZ15 Minneapolis wheat AJK15 apple juice concentrate KEZ15 Kansas wheat ZWZ15 CBOT wheat ICH15 national corn index IHH15 hard red winter wheat index IPH15 hard red spring wheat index ISH15 national soybean index IWH15 soft red spring wheat index
The "Z15" etc is the contract month letter and the year "15" for 2015. 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
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".
MGEX web site http://www.mgex.com
Copyright 2008, 2009, 2010, 2011, 2013, 2014, 2015 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/