Skip to main content

search

Search for ETFs.

An empty query returns the full list of ETFs from the provider.

Example​

from openbb import obb
### An empty query returns the full list of ETFs from the provider. ###
obb.etf.search("", provider="fmp")
#### The query will return results from text-based fields containing the term. ####obb.etf.search("commercial real estate", provider="fmp")

Parameters​

NameTypeDescriptionDefaultOptional
querystrSearch query.True
providerLiteral['fmp', 'tmx']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fmp' if there is no default.fmpTrue

Returns​

OBBject
results : List[EtfSearch]
Serializable results.

provider : Optional[Literal['fmp', 'tmx']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.(ETF)
namestrName of the ETF.