Lookup#
- class yfinance.Lookup(query: str, session=None, proxy=None, timeout=30, raise_errors=True)#
Fetches quote (ticker) lookups from Yahoo Finance.
- Parameters:
query (str) – The search query for financial data lookup.
session – Custom HTTP session for requests (default None).
proxy – Proxy settings for requests (default None).
timeout – Request timeout in seconds (default 30).
raise_errors – Raise exceptions on error (default True).
Attributes
- all
Returns all available financial instruments.
- cryptocurrency
Returns Cryptocurrencies related financial instruments.
- currency
Returns Currencies related financial instruments.
- etf
Returns ETFs related financial instruments.
- future
Returns Futures related financial instruments.
- index
Returns Indices related financial instruments.
- mutualfund
Returns mutual funds related financial instruments.
- stock
Returns stock related financial instruments.
Methods
- __init__(query: str, session=None, proxy=None, timeout=30, raise_errors=True)
- get_all(count=25) DataFrame
Returns all available financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_cryptocurrency(count=25) DataFrame
Returns Cryptocurrencies related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_currency(count=25) DataFrame
Returns Currencies related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_etf(count=25) DataFrame
Returns ETFs related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_future(count=25) DataFrame
Returns Futures related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_index(count=25) DataFrame
Returns Indices related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_mutualfund(count=25) DataFrame
Returns mutual funds related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_stock(count=25) DataFrame
Returns stock related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- property all: DataFrame#
Returns all available financial instruments.
- property cryptocurrency: DataFrame#
Returns Cryptocurrencies related financial instruments.
- property currency: DataFrame#
Returns Currencies related financial instruments.
- property etf: DataFrame#
Returns ETFs related financial instruments.
- property future: DataFrame#
Returns Futures related financial instruments.
- get_all(count=25) DataFrame #
Returns all available financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_cryptocurrency(count=25) DataFrame #
Returns Cryptocurrencies related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_currency(count=25) DataFrame #
Returns Currencies related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_etf(count=25) DataFrame #
Returns ETFs related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_future(count=25) DataFrame #
Returns Futures related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_index(count=25) DataFrame #
Returns Indices related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_mutualfund(count=25) DataFrame #
Returns mutual funds related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- get_stock(count=25) DataFrame #
Returns stock related financial instruments.
- Parameters:
count (int) – The number of results to retrieve.
- property index: DataFrame#
Returns Indices related financial instruments.
- property mutualfund: DataFrame#
Returns mutual funds related financial instruments.
- property stock: DataFrame#
Returns stock related financial instruments.