I try to run the sample code, but there has connection error... Linking R to IQFeed with the QuantTools package Get Started
> library( QuantTools ) Loading required package: data.table data.table 1.10.4 The fastest way to learn (by data.table authors): https://www.datacamp.com/courses/data-analysis-the-data-table-way Documentation: ?data.table, example(data.table) and browseVignettes("data.table") Release notes, videos and slides: http://r-datatable.com > Rcpp::evalCpp( code = '2 + 2' ) [1] 4 > symbols = c('GBPUSD.FXCM','EURUSD.FXCM' ) > path = paste( path.expand('~') , 'Market Data', 'iqfeed', sep = '/' ) > start_date = '2016-01-01' > > settings = list( + iqfeed_storage = path, + iqfeed_storage_from = start_date, + iqfeed_symbols = symbols + ) > QuantTools_settings( settings ) > > store_iqfeed_data() GBPUSD.FXCM not found in storage, trying to download since storage start date Error in FUN(X[[i]], ...) : cannot open the connection In addition: Warning message: In FUN(X[[i]], ...) : localhost:9100 cannot be opened
Comments (7)
-
repo owner -
reporter > ## Generic parameters > library(QuantTools) > from = '2016-01-01' > to = '2016-06-01' > symbol = 'SPY' > > ## Request data > get_iqfeed_data(symbol, from, to) Error in FUN(X[[i]], ...) : cannot open the connection In addition: Warning message: In FUN(X[[i]], ...) : localhost:9100 cannot be opened
-
repo owner Have you installed iqfeed client on your system? have you changed its default settings? Does Iqfeed watchquote work?
-
reporter I tried to download and install DOWNLOAD IQFEED CLIENT, but the account seems chargable to register... by the way, will the
QuantTools::Order()
function will place order in real account via API ?> ## Generic parameters > library(QuantTools) > from = '2016-01-01' > to = '2016-06-01' > symbol = 'SPY' > > ## Request data > get_iqfeed_data(symbol, from, to) Error in FUN(X[[i]], ...) : cannot open the connection In addition: Warning message: In FUN(X[[i]], ...) : localhost:9100 cannot be opened
-
repo owner - changed status to invalid
-
repo owner Yes, IQFeed is not a free service. At the moment QuantTools works only in simulation mode.
-
What if I try to use Finam data instead of IQfeed? Can Quanttools store the data with google or Yahoo data source? I am using a trial version of IQFeed. And when i tried to code with IQfeed settings, the code didnt seem to run as the IQFeed software was really buggy.
Commenting here as I got the same error which you have marked invalid. @quanttools
- Log in to comment
Not reproduced. Seems like IQFeed client not running or has different lookup port settings. Please check IQFeed client and test if below is working: