Skip to content

API Reference parrot_tools.yfinance

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.yfinance

View source

YFinance tool for retrieving market data via Yahoo Finance.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Alias AbstractToolArgsSchema

Re-exported from parrot_tools.abstract.AbstractToolArgsSchema.

Alias DEFAULT_TOOL_CACHE_TTL

Re-exported from parrot_tools.cache.DEFAULT_TOOL_CACHE_TTL.

Alias ToolCache

Re-exported from parrot_tools.cache.ToolCache.

Alias ToolResult

Re-exported from parrot_tools.abstract.ToolResult.

Class YFinanceArgs

Argument schema for :class:YFinanceTool.

Attributes:

Attribute Type Description
ticker str
action Literal['quote', 'info', 'history', 'financials', 'options']
period Optional[str]
interval Optional[str]
start Optional[Union[datetime, str]]
end Optional[Union[datetime, str]]
auto_adjust bool
include_actions bool

Method YFinanceArgs.normalize_ticker

normalize_ticker(value: str) -> str

Parameter Type Default Description
value str

Returns: str

Class YFinanceTool

Retrieve quotes, company information, and financial statements via Yahoo Finance.

Parameter Type Default Description
cache_ttl int DEFAULT_TOOL_CACHE_TTL
**kwargs {}

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally