[R] Bug report on get.hist.quote

davidr@rhotrading.com davidr at rhotrading.com
Wed Nov 2 19:43:28 CET 2005


Perhaps you forgot that currency pairs are named upsidedown; e.g.,
USD/JPY is yen per dollar? (This is sometimes written USD-JPY to try to
avoid the confusion. It is read "dollar-yen".)

David L. Reiner
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-
> bounces at stat.math.ethz.ch] On Behalf Of Ajay Shah
> Sent: Wednesday, November 02, 2005 5:09 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Bug report on get.hist.quote
> 
> 
> > get.hist.quote(instrument="INR/USD", provider="oanda",
start="2005-10-
> 20")
> trying URL
>
'http://www.oanda.com/convert/fxhistory?lang=en&date1=10%2F20%2F2005&dat
e=
>
11%2F01%2F2005&date_fmt=us&exch=INR&exch2=&expr=USD&expr2=&margin_fixed=
0&
> &SUBMIT=Get+Table&format=ASCII&redirected=1'
> Content type 'text/html' length unknown
> opened URL
> .......... ...
> downloaded 13Kb
> 
> 2005-10-20 2005-10-21 2005-10-22 2005-10-23 2005-10-24 2005-10-25
2005-10-
> 26
>    0.02220    0.02218    0.02224    0.02224    0.02224    0.02219
> 0.02226
> 2005-10-27 2005-10-28 2005-10-29 2005-10-30 2005-10-31 2005-11-01
>    0.02224    0.02225    0.02224    0.02224    0.02224    0.02221
> 
> 
> The answer is wrong. What is shown here is USD/INR, not INR/USD.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-
> guide.html




More information about the R-help mailing list