Import the Infront library
from InfrontConnect import infront
Insert your login credentials: your terminal user and password
infront.InfrontConnect(user = "myuser",password = "mypassword")
Use GetHistory() to fetch historical time series. The output is a dictionary that contain Pandas DataFrames.
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 = infront.GetHistory(tickers = ["NYS:BP","NYS:BRK.B"], fields = ["bid","ask","turnover","volume","last"],start_date = "2017-06-21", end_date = "2017-05-22")
MySymbols['BP']