Skip to main content

search

Filter indices for rows containing the query.

Examples​

from openbb import obb
obb.index.search(provider='cboe')
obb.index.search(query='SPX', provider='cboe')

Parameters​

NameTypeDescriptionDefaultOptional
querystrSearch query.True
is_symbolboolWhether to search by ticker symbol.FalseTrue
providerLiteral['cboe']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: cboe.NoneTrue

Returns​

OBBject
results : List[IndexSearch]
Serializable results.

provider : Optional[Literal['cboe']]
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.
namestrName of the index.