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.
Installation
pip install llama-index-tools-yahoo-finance
Usage
Here's an example of how to use this tool:
from llama_index.tools.yahoo_finance import YahooFinanceToolSpec
from llama_index.agent.openai 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.
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0266f16c014d9e94fa6af1feed0036de39c339d9fa53db9151471ae401a4487d |
|
MD5 | 250af07fc744b81ca807040ec4224eac |
|
BLAKE2b-256 | 2bcb2971e022a9307574c22eca832c49940e7c524bb744d8fe9d10e4615d360e |
Hashes for llama_index_tools_yahoo_finance-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de417b1278d47feb4e2ad288e747ef93d9dcc6ababe1f05a8a1995b7232c5342 |
|
MD5 | 88ebf5f55df59cf789c467d354e32ec7 |
|
BLAKE2b-256 | cee352fed37f921234b67e2ff731d4b570774d3b7f71718e89491e52e9a8c2aa |