Skip to main content

CLI for yfinance global / Yahoo Finance market data library

Project description

fd-yfinance

A CLI for querying global / US-market financial data via yfinance (Yahoo Finance).

Part of the cli-anything fork. Mirrors the fd-akshare harness layout.

Prerequisites

  • Python 3.10+
  • pip install yfinance

Installation

# from fd-yfinance/
uv pip install -e ".[dev,repl]"

Quick Start

# List all available functions
fd-yfinance list

# Search for functions by keyword
fd-yfinance search history

# Get function details including parameters
fd-yfinance info ticker_history

# Call a function (one-shot)
fd-yfinance call ticker_history symbol=AAPL period=1mo

# JSON output for machine consumption
fd-yfinance --json call ticker_history symbol=AAPL period=1mo

# Interactive REPL (default when no subcommand given)
fd-yfinance

Command conventions

yfinance centers on the Ticker object. This harness flattens it into a registry of commands:

  • ticker_<method> — calls yfinance.Ticker(symbol).<method>(...), e.g. ticker_history, ticker_info, ticker_financials.
  • Top-level functions keep their names, e.g. download, search.

Notes

  • Yahoo may rate-limit heavy automated use; yfinance retries/caches internally.
  • Output-column metadata in the registry is representative, not exhaustive.

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

fd_yfinance-0.1.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fd_yfinance-0.1.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file fd_yfinance-0.1.0.tar.gz.

File metadata

  • Download URL: fd_yfinance-0.1.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fd_yfinance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b192a6e3cacf5f27ec0a66940f577751515d26c0ad39f2188df2c6042021727
MD5 455dd8ae7057c743b8cfa5a034c43c8f
BLAKE2b-256 6721451034a19be68c8af6cc92c6165c0f37f0ad99ce3a5826291c0244538443

See more details on using hashes here.

File details

Details for the file fd_yfinance-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fd_yfinance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fd_yfinance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 101f621aea626782a71db62133d152b550badb2766133cf0afda1e814c1e2f74
MD5 a17253ff2fd0974a58f2a62548256147
BLAKE2b-256 9719fc2fac0cb68313d441576e603e7fac9842794aded8d0cff359c6400acf29

See more details on using hashes here.

Supported by

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