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.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = YahooFinanceToolSpec()
agent = FunctionAgent(
tools=tool_spec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("What is the price of Apple stock?"))
print(await agent.run("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.
Metadata
Release files for llama-index-tools-yahoo-finance 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_tools_yahoo_finance-0.6.0.tar.gz | 3.9 kB | Without provenance | Details for llama_index_tools_yahoo_finance-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_tools_yahoo_finance-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_tools_yahoo_finance-0.6.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / llama_index_tools_yahoo_finance-0.6.0.tar.gz
| Download URL | llama_index_tools_yahoo_finance-0.6.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53557de0654089d7a7bff23826881d73193af02a0d40a1e5f85f2866103220d1
|
|
BLAKE2b-256 checksum How to use checksums |
08956f5e1fe35817629dc62fe1555b4a7c202fa832a7581689296108e03f5128
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_tools_yahoo_finance-0.6.0-py3-none-any.whl
| Download URL | llama_index_tools_yahoo_finance-0.6.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d05ba2f0fe8c2b04a4d6ec21e7bfab784c332cf86684d316b3ae52267c8ccbc6
|
|
BLAKE2b-256 checksum How to use checksums |
aca172702c6950be2584f0d6511806b0e975aa8e1a4a85cca590e7fb88faa0a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-tools-yahoo-finance 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.