[R] Bug report on get.hist.quote

Adrian Trapletti a.trapletti at swissonline.ch
Thu Nov 3 13:44:46 CET 2005


>
>
>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&date=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.
>
>
>  
>
Ajay,

This is not a bug! The answer is correct. *1 Indian Rupee = 0.02220 US 
Dollar on *2005-10-20 and this is also the standard way currencies are 
quoted. Pls read, e.g.

http://fxtrade.oanda.com/currency_trading/fxbasics.shtml

Best regards
Adrian




More information about the R-help mailing list