Author

Topic: Connecting to trade APIs in R? (Read 866 times)

full member
Activity: 168
Merit: 100
Firstbits: 175wn
August 12, 2011, 09:59:27 PM
#4
In file(con, "r") : unsupported URL scheme

The URL scheme is, in this case https. This means that R doesn't have https support. Google suggests looking into the package RCurl.

Note that I've never programmed in R before.
newbie
Activity: 6
Merit: 0
August 12, 2011, 08:16:23 PM
#3
I actually have a good amount of experience with a bunch of other languages... I just wanted to use R for its statistical upper-hand on virtually ever other language. So no dice on R advice? I guess R's not too popular with the BTC crowd, then Sad
member
Activity: 125
Merit: 10
August 12, 2011, 03:53:29 PM
#2
My advice is to learn a real language Smiley
newbie
Activity: 6
Merit: 0
August 12, 2011, 11:21:14 AM
#1
Does anyone have advice on connecting to the trade APIs through R? It looks like R doesn't support the URl structure for APIs like TradeHill etc... I'm trying to work with the ReadLines function but to no avail... I simply get output that looks like this:

 

> readLines("https://api.tradehill.com/APIv1/USD/Orderbook")
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : unsupported URL scheme



I've deduced that this function needs a file suffix (ie it would have to be something like orderbook.php) to be able to download the data.

Does anyone have any workarounds that they've used, and/or does anyone have any tricks for connecting to these APIs using R?
Jump to: