Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_yahoo_finance-0.3.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_tools_yahoo_finance-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_yahoo_finance-0.3.0.tar.gz
Algorithm Hash digest
SHA256 646fc328cc125c17358ba91b3cbd509c94a4882189508887829506e9a1f56439
MD5 31071380c88ab14f0da7a9d1b9f68e0e
BLAKE2b-256 f0d7cfb61ca31048077098e247d988688bba81523af837231e5907b3f8e42de6

See more details on using hashes here.

File details

Details for the file llama_index_tools_yahoo_finance-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_yahoo_finance-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6832ea4678ddcd4dcc6fbb554a02d464184391902f64bc69f22f6809c27d075c
MD5 1c9a01863aa2e04880a5e4a94fac1b9a
BLAKE2b-256 837b3a26f917e0486632be33847472830a6fcf1b8a8844a1c4cdbb3892f7328a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page