Use TiingoClient to access various stock market endpoints. Most methods support parameters like frequency, startDate, endDate, and columns.
Ticker Metadata and Prices
get_ticker_metadata(symbol): Returns metadata for a specific ticker.get_ticker_price(symbol, ...): Returns price data. Supported frequencies include daily, weekly, monthly, annually, and intraday formats like 1min, 30Min, or 1Hour.
News and Fundamentals
list_stock_tickers(): Lists available tickers and their metadata.get_news(tickers, tags, sources, ...): Retrieves news articles.get_fundamentals_definitions(ticker): Gets definitions for fundamentals fields.get_fundamentals_daily(ticker, ...): Gets daily-updated fundamentals (e.g., marketCap).get_fundamentals_statements(ticker, ..., asReported=True/False): Gets fundamentals from quarterly statements. Use asReported=True for SEC-reported data or False for corrected data.
# Get Ticker Metadata
ticker_metadata = client.get_ticker_metadata("GOOGL")
# Get weekly prices
ticker_price = client.get_ticker_price("GOOGL", frequency="weekly")
# Get 1 min prices with specific columns
ticker_price = client.get_ticker_price("GOOGL", frequency="1min", columns="open,close,volume")
# Get historical daily prices as JSON
historical_prices = client.get_ticker_price("GOOGL", fmt='json', startDate='2017-08-01', endDate='2017-08-31', frequency='daily')
# Get news
articles = client.get_news(tickers=['GOOGL', 'AAPL'], tags=['Laptops'], sources=['washingtonpost.com'], startDate='2017-01-01', endDate='2017-08-31')