Load the Infront library
library(InfrontConnect)
Insert your login credentials: your terminal user and password
InfrontConnect(user = "myuser", password="mypassword")
tickers: A list containing strings in the format "FEED:TICKER", i.e. tickers = ["NYS:BLK","NYS:CAT"]
fields: A list containing valid strings, i.e. fields = ["last","bid","ask","volume","turnover"]
start_date: A string with the date in a YYYY-MM-DD format, i.e. "2017-06-06"
end_date: A string with the date in a YYYY-MM-DD format, i.e. "2017-06-06"
MySymbols = GetHistory(tickers = c("NYS:AGN","NYS:AIG","NYS:ANTM"), fields = c("bid","ask","turnover","volume","last"), start_date = "2017-05-26", end_date = "2017-06-25")
MySymbols