OpenBB

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

cookbook/tools/openbb_tools.py

from bitca.agent import Agent
from bitca.tools.openbb_tools import OpenBBTools


agent = Agent(tools=[OpenBBTools()], debug_mode=True, show_tool_calls=True)

# Example usage showing stock analysis
agent.print_response(
    "Get me the current stock price and key information for Apple (AAPL)"
)

# Example showing market analysis
agent.print_response(
    "What are the top gainers in the market today?"
)

# Example showing economic indicators
agent.print_response(
    "Show me the latest GDP growth rate and inflation numbers for the US"
)

Toolkit Params

Parameter
Type
Default
Description

read_article

bool

True

Enables the functionality to read the full content of an article.

include_summary

bool

False

Specifies whether to include a summary of the article along with the full content.

article_length

int

-

The maximum length of the article or its summary to be processed or returned.

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.

Last updated