quote Japanese stock market from Yahoo!-finance-Japan

Share:

Description

quote Japanese stock market from Yahoo!-finance-Japan

Usage

1
quoteStockTsData(x, since = NULL, start.num = 0, date.end = NULL, time.interval = 'daily')

Arguments

x

<stock_code>.<market> ex: 4689.t

since

'YYYY-MM-DD' ex:'2009-01-01'

start.num

offset. ex:50

date.end

'YYYY-MM-DD' ex:'2009-01-01'

time.interval

Data frequency.Possible types are 'daily','weekly', or 'monthly'.

Value

A Data frame. ( $date, $open, $height, $low, $close, $volume )

Author(s)

Yohei Sato <yokkuns@tkul.jp> Nobuaki Oshiro <akiaki5516@gmail.com> Shinichi Takayanagi <teramonagi@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
stock <- quoteStockTsData('4689.t')
head(stock)
stock <- quoteStockTsData('4689.t', since='2009-01-01',date.end='2009-12-31')
head(stock)
stock <- quoteStockTsData('4689.t', since='2009-01-01',
                          date.end='2009-12-31',time.interval='monthly')
head(stock)
plot(stock$date, stock$close, type="l", col="blue")

## End(Not run)