Overview
Theyf_field_categories tool returns a categorized grouping of yfinance fields, organizing them by data type and use case. This helps you understand field relationships and build more organized queries.
Use Cases
- Discover field groups: Browse fields organized by category (valuation, fundamentals, etc.)
- Query organization: Build screener queries using related field groups
- Data exploration: Understand what types of data are available
- Learning: Discover new fields within categories you’re already using
Parameters
This tool accepts only output formatting parameters:Output format:
"json" or "markdown"Number of rows to preview in markdown format (1-200)
Save results to a file
Response
Returns field categories with:- Category name: The grouping name (e.g., “Valuation”, “Fundamentals”, “Performance”)
- Fields: List of fields in each category
- Description: What type of data the category represents
Common Categories
Expect categories such as:- Valuation Metrics: P/E, P/B, market cap, enterprise value
- Fundamentals: Revenue, earnings, profit margins
- Performance: Returns, volatility, beta
- Dividends: Yield, payout ratio, dividend history
- Growth: Revenue growth, earnings growth
- Analyst Data: Recommendations, price targets, estimates
Example Usage
Get All Categories
Save Category Reference
Preview in Markdown
Response Example
Related Tools
- Field Definitions - Get detailed field definitions and modules
- Screener - Build queries using categorized fields
Building Queries with Categories
Use category information to build comprehensive screener queries:Tips
Categories are organizational tools. The actual field availability depends on the ticker type and data module you’re querying.