[R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API
veepsirtt
veepsirtt at gmail.com
Thu Nov 28 05:37:25 CET 2013
Hello Gsee,
Why I am getting this error?.
unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
-----------------------------------------------------------
> ## Cannot run these because there may not be an internet connection
> ## Not run:
> library(TFX)
> QueryTrueFX() #unauthenticated
Symbol Bid.Price Ask.Price High Low TimeStamp
1 EUR/USD 1.35773 1.35781 1.35804 1.35634 2013-11-28 04:29:35
2 USD/JPY 102.05800 102.06400 102.29100 101.93300 2013-11-28 04:29:38
3 GBP/USD 1.63036 1.63055 1.63074 1.62763 2013-11-28 04:29:35
4 EUR/GBP 0.83265 0.83282 0.83436 0.83235 2013-11-28 04:29:35
5 USD/CHF 0.90768 0.90784 0.90874 0.90725 2013-11-28 04:29:40
6 EUR/JPY 138.56800 138.58300 138.84900 138.29900 2013-11-28 04:29:35
7 EUR/CHF 1.23241 1.23266 1.23308 1.23195 2013-11-28 04:29:35
8 USD/CAD 1.05844 1.05867 1.05987 1.05746 2013-11-28 04:29:34
9 AUD/USD 0.91259 0.91270 0.91411 0.90742 2013-11-28 04:29:34
10 GBP/JPY 166.38900 166.42000 166.61000 165.95600 2013-11-28 04:29:35
> QueryTrueFX(pretty=FALSE)
$Symbol
[1] "EUR/USD" "USD/JPY" "GBP/USD" "EUR/GBP" "USD/CHF" "EUR/JPY" "EUR/CHF"
"USD/CAD" "AUD/USD" "GBP/JPY"
$BidBigNumber
[1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."
$BidPip
[1] "773" "058" "036" "265" "768" "568" "241" "844" "259" "389"
$OfferBigNumber
[1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."
$OfferPip
[1] "781" "064" "055" "282" "784" "583" "266" "867" "270" "420"
$High
[1] "1.35804" "102.291" "1.63074" "0.83436" "0.90874" "138.849" "1.23308"
"1.05987" "0.91411" "166.610"
$Low
[1] "1.35634" "101.933" "1.62763" "0.83235" "0.90725" "138.299" "1.23195"
"1.05746" "0.90742" "165.956"
$TimeStamp
[1] "1385612975232" "1385612978277" "1385612975780" "1385612975128"
"1385612980409" "1385612975181"
[7] "1385612975905" "1385612974630" "1385612974758" "1385612975675"
> QueryTrueFX(parse=FALSE)
[1]
"EUR/USDUSD/JPYGBP/USDEUR/GBPUSD/CHFEUR/JPYEUR/CHFUSD/CADAUD/USDGBP/JPY1.35102.1.630.830.90138.1.231.050.91166.7690580362627735672398442593891.35102.1.630.830.90138.1.231.050.91166.7770640552787875812638672704201.35804102.2911.630740.834360.90874138.8491.233081.059870.91411166.6101.35634101.9331.627630.832350.90725138.2991.231951.057460.90742165.9561385612981970138561297827713856129820241385612981995138561298220413856129818141385612981814138561297463013856129747581385612975675"
>
> ## 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’)
Error: unexpected input in "id <- ConnectTrueFX(’"
> QueryTrueFX(id)
Symbol Bid.Price Ask.Price High Low TimeStamp
1 EUR/USD 1.35769 1.35777 1.35804 1.35634 2013-11-28 04:29:52
2 GBP/USD 1.63031 1.63048 1.63074 1.62763 2013-11-28 04:29:52
> id
<environment: 0x10459290>
attr(,"class")
[1] "TFXsession" "environment"
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’csv’), arse=FALSE)
Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’html’), arse=FALSE)
Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
>
--
View this message in context: http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681300.html
Sent from the Rmetrics mailing list archive at Nabble.com.
More information about the R-SIG-Finance
mailing list