Finance::Quote::MtGox - Obtain information from Mt.Gox
use Finance::Quote; $q = Finance::Quote->new; %info = Finance::Quote->fetch("mtgox_usd", "BTC"); %info = Finance::Quote->fetch("mtgox_eur", "LTC");
This module fetches information from Mt.Gox. The following symbols are currently known:
The following methods provide prices directly from Mt.Gox, in each of the currency markets that they operate.
In addition, "bitcoin_$market" methods are provided in case failover to other exchanges is desirable. These methods will return data for other digital currencies than Bitcoin; the currency for which data is retrieved is determined by the symbol name passed to the method.
Mt.Gox operates a multi-currency market, where all offers across all markets are amalgamated into a common pool. Trades between markets are matched using the European Central Bank's daily exchange rate, plus a 2.5% fee included in the price.
To install Finance::Quote, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Quote
CPAN shell
perl -MCPAN -e shell install Finance::Quote
For more information on module installation, please visit the detailed CPAN module installation guide.