quoteFXTsData: quote foreign exchange rate from Yahoo!-finance-Japan

Description Usage Arguments Value Author(s) Examples

View source: R/quoteStockTsData.R

Description

quote foreign exchange rate from Yahoo!-finance-Japan

Usage

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

Arguments

x

<currencypair_code> ex: USDJPY=X

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)

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
## Not run: 
fx <- quoteFXTsData("USDJPY=X")
head(fx)
fx <- quoteFXTsData("USDJPY=X",since="2009-01-01",date.end="2010-05-31",time.interval="monthly")
head(fx)

## End(Not run)

RFinanceYJ documentation built on May 2, 2019, 10:09 a.m.