[R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

G See gsee000 at gmail.com
Tue Nov 26 15:02:22 CET 2013


Try typing that command.  Your single quote is a weird character.  Try this:

id <- ConnectTrueFX('EUR/USD,GBP/USD', username='veepsirtt',
                                      password='veeps203')

On Tue, Nov 26, 2013 at 3:47 AM, veepsirtt <veepsirtt at gmail.com> wrote:
> Hello gsee,
>
> I tryied the examples given in your documentation.
> But I am getting errors.
> what is the problem?
> With regards
> veepsirtt.
> ------------------------------------------------------------------------
>
> ## Cannot run these because there may not be an internet connection
> ## Not run:
> library(TFX)
> QueryTrueFX() #unauthenticated
> QueryTrueFX(pretty=FALSE)
> QueryTrueFX(parse=FALSE)
>
> ## For authenticated session, you must have a username and password (it’s
> free).
> ## Use your username and passward instead of JSTrader and Ou812
>
> id <- ConnectTrueFX(’EUR/USD,GBP/USD’, username=’veepsirtt’,
> password=’veeps203’)
> QueryTrueFX(id)
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’csv’), parse=FALSE)
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’html’), parse=FALSE)
> ## If you have shiny installed
> ## install.packages("shiny", repos="http://rstudio.org/_packages")
> library(shiny)
>
> runGist("4122626")
>
> ## view the code for this shiny app at
> #browseURL("https://gist.github.com/4122626")
> ## End(Not run)--------------------------------------
>
>
>
> ************************RESULTS*******************
>> source('~/.active-rstudio-document', echo=TRUE)
> Error in source("~/.active-rstudio-document", echo = TRUE) :
>   ~/.active-rstudio-document:11:21: unexpected input
> 10:
> 11: id <- ConnectTrueFX(�
>                        ^
>> sessionInfo()
> R version 2.15.3 (2013-03-01)
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
> LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=C
> LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
>  [1] shiny_0.8.0     TFX_0.1.0       ggplot2_0.9.3.1 xtsExtra_0.0-1
> tseries_0.10-32 quantmod_0.4-0
>  [7] TTR_0.21-1      xts_0.9-3       zoo_1.7-9       Defaults_1.1-1
>
> loaded via a namespace (and not attached):
>  [1] bitops_1.0-4.1     caTools_1.13       colorspace_1.2-0
> dichromat_1.2-4    digest_0.5.2
>  [6] grid_2.15.3        gtable_0.1.1       httpuv_1.2.0       labeling_0.1
> lattice_0.20-13
> [11] MASS_7.3-23        munsell_0.4        plyr_1.7.1         proto_0.3-9.2
> quadprog_1.5-5
> [16] RColorBrewer_1.0-5 Rcpp_0.10.2        reshape2_1.2.1     RJSONIO_1.0-1
> scales_0.2.3
> [21] stringr_0.6.1      tools_2.15.3       XML_3.98-1.1       xtable_1.7-0
>>
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681163.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list