Tiingo¶
- class pandas_datareader.tiingo.TiingoDailyReader(symbols, start=None, end=None, retry_count=3, pause=0.1, timeout=30, session=None, freq=None, api_key=None)¶
Historical daily data from Tiingo on equities, ETFs and mutual funds
- Parameters
symbols ({str, List[str]}) – String symbol or list of symbols
start (string, int, date, datetime, Timestamp) – Starting date, timestamp. Parses many different kind of date representations (e.g., ‘JAN-01-2010’, ‘1/1/10’, ‘Jan, 1, 1980’). Default starting date is 5 years before current date.
end (string, int, date, datetime, Timestamp) – Ending date, timestamp. Same format as starting date.
retry_count (int, default 3) – Number of times to retry query request.
pause (float, default 0.1) – Time, in seconds, of the pause between retries.
session (Session, default None) – requests.sessions.Session instance to be used
freq ({str, None}) – Not used.
api_key (str, optional) – Tiingo API key . If not provided the environmental variable TIINGO_API_KEY is read. The API key is required.
- close()¶
Close network session
- property default_start_date¶
Default start date for reader. Defaults to 5 years before current date
- property params¶
Parameters to use in API calls
- read()¶
Read data from connector
- property url¶
API URL
- class pandas_datareader.tiingo.TiingoQuoteReader(symbols, start=None, end=None, retry_count=3, pause=0.1, timeout=30, session=None, freq=None, api_key=None)¶
Read quotes (latest prices) from Tiingo
- Parameters
symbols ({str, List[str]}) – String symbol or list of symbols
start (string, int, date, datetime, Timestamp) – Not used.
end (string, int, date, datetime, Timestamp) – Not used.
retry_count (int, default 3) – Number of times to retry query request.
pause (float, default 0.1) – Time, in seconds, of the pause between retries.
session (Session, default None) – requests.sessions.Session instance to be used
freq ({str, None}) – Not used.
api_key (str, optional) – Tiingo API key . If not provided the environmental variable TIINGO_API_KEY is read. The API key is required.
Notes
This is a special case of the daily reader which automatically selected the latest data available for each symbol.
- close()¶
Close network session
- property default_start_date¶
Default start date for reader. Defaults to 5 years before current date
- property params¶
Parameters to use in API calls
- read()¶
Read data from connector
- property url¶
API URL
- class pandas_datareader.tiingo.TiingoMetaDataReader(symbols, start=None, end=None, retry_count=3, pause=0.1, timeout=30, session=None, freq=None, api_key=None)¶
Read metadata about symbols from Tiingo
- Parameters
symbols ({str, List[str]}) – String symbol or list of symbols
start (string, int, date, datetime, Timestamp) – Not used.
end (string, int, date, datetime, Timestamp) – Not used.
retry_count (int, default 3) – Number of times to retry query request.
pause (float, default 0.1) – Time, in seconds, of the pause between retries.
session (Session, default None) – requests.sessions.Session instance to be used
freq ({str, None}) – Not used.
api_key (str, optional) – Tiingo API key . If not provided the environmental variable TIINGO_API_KEY is read. The API key is required.
- close()¶
Close network session
- property default_start_date¶
Default start date for reader. Defaults to 5 years before current date
- property params¶
Parameters to use in API calls
- read()¶
Read data from connector
- property url¶
API URL
- pandas_datareader.tiingo.get_tiingo_symbols()¶
Get the set of stock symbols supported by Tiingo
- Returns
symbols – DataFrame with symbols (ticker), exchange, asset type, currency and start and end dates
- Return type
DataFrame
Notes
Reads https://apimedia.tiingo.com/docs/tiingo/daily/supported_tickers.zip