Skip to content

Search Functions

Search for stocks by industry.

Parameters:

Name Type Description Default
industry str

Industry name in Japanese (e.g., "電気機器", "輸送用機器"). See list_industries() for the full list.

required
market str

Market filter — "all", "Prime", "Standard", "Growth", or Japanese names like "東証P"

'all'

Returns:

Type Description
list[Ticker]

List of Ticker objects.

Raises:

Type Description
ValueError

For an unknown industry or market.

Example

tickers = search_by_industry("電気機器") for t in tickers[:5]: ... print(t.code)

Search for stocks by theme.

Parameters:

Name Type Description Default
theme str

Theme name in Japanese (e.g., "人工知能", "半導体"). Must be in Japanese; English terms like "AI" won't match.

required
market str

Market filter — "all", "Prime", "Standard", "Growth"

'all'

Returns:

Type Description
list[Ticker]

List of Ticker objects (empty for unknown themes).

Raises:

Type Description
ValueError

For an unknown market.

Example

tickers = search_by_theme("半導体") for t in tickers[:5]: ... print(t.code)

Get list of industry names usable with search_by_industry().