llama-index tools yahoo_finance integration
Project description
Yahoo Finance Tool
This tool connects to Yahoo Finance and allows an Agent to access stock, news, and financial data of a company.
Usage
Here's an example of how to use this tool:
from llama_index.tools.yahoo_finance import YahooFinanceToolSpec
from llama_index.agent import OpenAIAgent
tool_spec = YahooFinanceToolSpec()
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("What is the price of Apple stock?")
agent.chat("What is the latest news about Apple?")
The tools available are:
balance_sheet
: A tool that returns the balance sheet of a company.
income_statement
: A tool that returns the income statement of a company.
cash_flow
: A tool that returns the cash flow of a company.
stock_news
: A tool that returns the latest news about a company.
stock_basic_info
: A tool that returns basic information about a company including price.
stock_analyst_recommendations
: A tool that returns analyst recommendations for a company.
This loader is designed to be used as a way to load data as a Tool in a Agent. See here for examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for llama_index_tools_yahoo_finance-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a9867918938db019774d38117662b5c44a85e03499586c2f5e4613aff6acc9 |
|
MD5 | b42a21ed76c933f527d450b4264701c0 |
|
BLAKE2b-256 | 1b4ac81d63040620bfab7a531a0f8756e2c155c145ed4bf8456b602e5672df5b |
Hashes for llama_index_tools_yahoo_finance-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f569ea29d1faee1e9930e9637ca67fa6f088b96f4d7a846bf36d0d5d97a0c59 |
|
MD5 | 91cae56052100eb09283a28c8975d497 |
|
BLAKE2b-256 | f265dc7f045a2c1e875f31e4be26640776c919912c4bc0b6e38d0184aeb29d3c |