> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenBB

> Retrieve stock prices, company profiles, price targets, and news with OpenBBTools and the OpenBB Platform.

**OpenBBTools** enable an Agent to provide information about stocks and companies.

## Prerequisites

The following example requires the `openbb` and `openai` libraries.

```shell theme={null}
uv pip install -U openbb openai
```

## Example

```python cookbook/91_tools/openbb_tools.py theme={null}
from agno.agent import Agent
from agno.tools.openbb import OpenBBTools

agent = Agent(
    tools=[
        OpenBBTools(
            enable_get_stock_price=True,
            enable_search_company_symbol=True,
            enable_get_company_news=False,
            enable_get_company_profile=False,
            enable_get_price_targets=False,
        )
    ],
    markdown=True,
)

agent.print_response(
    "Get the current stock price for Apple (AAPL)"
)

agent.print_response(
    "Search for the stock symbols of Microsoft and Alphabet"
)

agent.print_response(
    "Get the current stock prices for MSFT and GOOGL"
)
```

## Toolkit Params

| Parameter | Type | Default | Description |
| - | - | - | - |
| `obb` | `Any` | `None` | OpenBB app instance. If not provided, uses default. |
| `openbb_pat` | `str` | `None` | Personal Access Token for OpenBB API authentication. If not provided, uses OPENBB\_PAT env var. |
| `provider` | `str` | `"yfinance"` | Data provider for financial information. Options: "benzinga", "fmp", "intrinio", "polygon", "tiingo", "tmx", "yfinance". |
| `enable_get_stock_price` | `bool` | `True` | Enable the stock price retrieval function. |
| `enable_search_company_symbol` | `bool` | `False` | Enable the company symbol search function. |
| `enable_get_company_news` | `bool` | `False` | Enable the company news retrieval function. |
| `enable_get_company_profile` | `bool` | `False` | Enable the company profile retrieval function. |
| `enable_get_price_targets` | `bool` | `False` | Enable the price targets retrieval function. |
| `all` | `bool` | `False` | Enable all available functions. When True, all enable flags are ignored. |

## Toolkit Functions

| Function | Description |
| - | - |
| `get_stock_price` | This function gets the current stock price for a stock symbol or list of symbols. |
| `search_company_symbol` | This function searches for the stock symbol of a company. |
| `get_price_targets` | This function gets the price targets for a stock symbol or list of symbols. |
| `get_company_news` | This function gets the latest news for a stock symbol or list of symbols. |
| `get_company_profile` | This function gets the company profile for a stock symbol or list of symbols. |

## Developer Resources

* [Tools](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/tools/openbb.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.