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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa01f44b9dac00caf578e0cb884595114188824dcff292b45ef99e5345837b4 |
|
MD5 | 5708ee3f5ff22576a5de906e52a58434 |
|
BLAKE2b-256 | 3aca75db368e2f3ee83e19c8f573e23c355fcabc1f16f238fb3a225ba5d6e4a1 |
Hashes for llama_index_tools_yahoo_finance-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ceaf8a563f445cb13fc7a8b02c4e465a45df7fc25b6cf3e2c14807fd15406b6 |
|
MD5 | f96d2491c5474e4dcd09e41361019f05 |
|
BLAKE2b-256 | 0454c0ad48161f6f3171991e73ba336d3a30173660405c864194d24532626ae4 |