Name | llama-index-tools-yahoo-finance JSON |
Version |
0.4.1
JSON |
| download |
home_page | None |
Summary | llama-index tools yahoo_finance integration |
upload_time | 2025-09-08 20:49:46 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <4.0,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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:
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-yahoo-finance",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Your Name <you@example.com>",
"download_url": "https://files.pythonhosted.org/packages/54/10/5a6e57bfe5071fb3e158608f1c089a4e80c5ebe7a206df25d33babc1c6d9/llama_index_tools_yahoo_finance-0.4.1.tar.gz",
"platform": null,
"description": "# Yahoo Finance Tool\n\nThis tool connects to Yahoo Finance and allows an Agent to access stock, news, and financial data of a company.\n\n## Installation\n\npip install llama-index-tools-yahoo-finance\n\n## Usage\n\nHere's an example of how to use this tool:\n\n```python\nfrom llama_index.tools.yahoo_finance import YahooFinanceToolSpec\nfrom llama_index.core.agent.workflow import FunctionAgent\nfrom llama_index.llms.openai import OpenAI\n\ntool_spec = YahooFinanceToolSpec()\nagent = FunctionAgent(\n tools=tool_spec.to_tool_list(),\n llm=OpenAI(model=\"gpt-4.1\"),\n)\n\nprint(await agent.run(\"What is the price of Apple stock?\"))\nprint(await agent.run(\"What is the latest news about Apple?\"))\n```\n\nThe tools available are:\n\n`balance_sheet`: A tool that returns the balance sheet of a company.\n\n`income_statement`: A tool that returns the income statement of a company.\n\n`cash_flow`: A tool that returns the cash flow of a company.\n\n`stock_news`: A tool that returns the latest news about a company.\n\n`stock_basic_info`: A tool that returns basic information about a company including price.\n\n`stock_analyst_recommendations`: A tool that returns analyst recommendations for a company.\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": null,
"summary": "llama-index tools yahoo_finance integration",
"version": "0.4.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b59ef52e85304a2ba7149c20ae64e14204592db660c1089df06a5c47f78ffcf4",
"md5": "fcb603407209c76198d6c5714e4ebbe8",
"sha256": "4932d8f55303f7aac4164391d0a11f7ff4b3a3e683c49abd031b793cc172853f"
},
"downloads": -1,
"filename": "llama_index_tools_yahoo_finance-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fcb603407209c76198d6c5714e4ebbe8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 3576,
"upload_time": "2025-09-08T20:49:45",
"upload_time_iso_8601": "2025-09-08T20:49:45.938651Z",
"url": "https://files.pythonhosted.org/packages/b5/9e/f52e85304a2ba7149c20ae64e14204592db660c1089df06a5c47f78ffcf4/llama_index_tools_yahoo_finance-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "54105a6e57bfe5071fb3e158608f1c089a4e80c5ebe7a206df25d33babc1c6d9",
"md5": "7fa0d7d250e4f4577a6f8d9e6716b95d",
"sha256": "a2b887528fdc25ce7fed427498d7cdc8568c5fc25ad8f263c0077739dae2d69c"
},
"downloads": -1,
"filename": "llama_index_tools_yahoo_finance-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "7fa0d7d250e4f4577a6f8d9e6716b95d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3899,
"upload_time": "2025-09-08T20:49:46",
"upload_time_iso_8601": "2025-09-08T20:49:46.671984Z",
"url": "https://files.pythonhosted.org/packages/54/10/5a6e57bfe5071fb3e158608f1c089a4e80c5ebe7a206df25d33babc1c6d9/llama_index_tools_yahoo_finance-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-08 20:49:46",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-yahoo-finance"
}