NAME
Finance::YahooJapan::HistoricalQuotes
DESCRIPTION
This module fetchs historical stock quotes of Japanese market.
SYNOPSIS
use Finance::YahooJapan::HistoricalQuotes;
# fetch the quotes of Sony Corp. at Tokyo market.
@quotes = Finance::YahooJapan::HistoricalQuotes->quotes('6758.t');
foreach $quotes (@quotes) {
print $quotes, "\n";
}
METHODS
- quotes($symbol [, $start])
-
quotes() method fetches quotes; those values have been already adjusted for splits; showing data in ascending order; silent fetching during its procedure.
- splits($symbol [, $start])
-
splits() method fetches splits; showing data in ascending order; silent fetching during its procedure.
A stock symbol ($symbol) should be given 4 numbers followed by market extension: `.' and 1 alphabet. (ex. `6758.t' ) For more informations about market extensions, check at: http://help.yahoo.co.jp/help/jp/fin/quote/stock/quote_02.html
Starting date ($start) should be given in a format `YYYY-MM-DD'. (ex. `2002-01-04') The default $start is '1980-01-01'. (Be careful, do not forget to quote words, because bare word 2000-01-01 will be conprehend by Perl as 2000 - 1 - 1 = 1998 !)
- quotes_custom($symbol, $adjust, $order, $silent [, $start])
-
quotes_custom() method presents some more options to quotes() method.
- splits_custom($symbol, $order, $silent [, $start])
-
splits_custom() method presents some more options to splits() method.
$adjust: for splits, adjust(1) or not adjust(0).
$order: showing data in ascending order(1) or descending order(0).
$silent: during its procedure, fetching in silent(1) or not(0).
THIS VERSION
v0.01
DEVELOPED PLATFORM
Perl v5.6.1 for MSWin32-x86-multi-thread (ActivePerl b631)
NOTES
This program calculates adjusted values originally including closing price. The only adjusted value which Yahoo presents is closing price, and its numbers are not rounded but cut for decimal fractions. For this reason, I decided to ignore Yahoo's adjusted values (that's why some adjusted closing prices are different from Yahoo's).
For non-Japanese users: this program includes some Japanese multi-byte character codes called `EUC-JP' for analyzing Yahoo! Japan's HTML data.
This is an idea, experimental version. Some interfaces may be changed in the future development.
Sorry, my poor English. `All your code is blong to CPAN!' (I hope so.)
AUTHOR
Masanori HATA <lovewing@geocities.co.jp>
COPYRIGHT
Copyright (c) 2002 Masanori HATA. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HISTORY
2002-04-09 v0.01
2002-03-18 v0.00
2001-05-30 (Yahoo! Cropper v0.1)