Search Instruments
The search instruments function allows you to search for a company or financial instrument by name. It returns a dataframe with all the symbols that match the query.
Also known as: find companies, lookup stocks, ticker search, instrument search.
Search Instruments in Python
search_instruments is part of the Discovery module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call search_instruments as shown below.
from financetoolkit import Discovery
discovery = Discovery(api_key="FINANCIAL_MODELING_PREP_KEY")
discovery.search_instruments(query='META')
Which returns:
| Symbol | Name | Currency | Exchange | Exchange Code |
|---|---|---|---|---|
| META | Meta Platforms, Inc. | USD | NASDAQ Global Select | NASDAQ |
| META.L | WisdomTree Industrial Metals Enhanced | USD | London Stock Exchange | LSE |
| METAUSD | Metadium USD | USD | CCC | CRYPTO |
| META.MI | WisdomTree Industrial Metals Enhanced | EUR | Milan | MIL |
| META.JK | PT Nusantara Infrastructure Tbk | IDR | Jakarta Stock Exchange | JKT |
Parameters
search_instruments accepts the following parameters:
- query (str): A query to search for, e.g. ‘META’.
- search_method (str, optional): The field to search against. Valid options are ‘symbol’, ‘name’, ‘cik’, ‘cusip’, and ‘isin’. Defaults to ‘name’.