Skip to main content

search

Search selected query for tickers.

Source Code: [link]

openbb.stocks.search(query: str = "", country: str = "", sector: str = "", industry: str = "", exchange_country: str = "", limit: int = 0, export: str = "")

Parameters​

NameTypeDescriptionDefaultOptional
querystrThe search term used to find company tickersTrue
countrystrSearch by country to find stocks matching the criteriaTrue
sectorstrSearch by sector to find stocks matching the criteriaTrue
industrystrSearch by industry to find stocks matching the criteriaTrue
exchange_countrystrSearch by exchange country to find stock matchingTrue
limitintThe limit of companies shown.0True
exportstrExport dataTrue

Returns​

This function does not return anything


Examples​

from openbb_terminal.sdk import openbb
openbb.stocks.search(country="united states", exchange_country="Germany")