yfinance 行情数据

yfinance 行情数据:通过 Yahoo Finance 获取全球多市场股票、指数、外汇及加密货币的历史行情、财务数据、实时报价和财务日历。 含 14 条反模式约束。

✓ 0 人报告成功·v0.1.0·

晶体简介

通过 Yahoo Finance 获取全球多市场股票、指数、外汇及加密货币的历史行情、财务数据、实时报价和财务日历。 本 skill 基于开源项目构建并集成 14 条 anti-pattern 约束。访问 doramagic.ai/r/yfinance-market-data 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-128

tangweigang-jpg/doramagic-skills6360a632 source files

Constraints

45total
31fatal
31 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

31 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen implementing HTTP session initialization for Yahoo API

ACTIONUse curl_cffi.requests.Session with impersonate='chrome'

CONSEQUENCEYahoo's non-browser client blocking detects and rejects requests from standard HTTP libraries, resulting in 403 Forbidden errors and complete data access failure

FATALdomain_rulefinance-C-002

WHENWhen handling HTTP request errors for Yahoo API

ACTIONRetry only transient errors (TimeoutError, socket.error, OSError, ConnectionError) and raise for permanent errors

CONSEQUENCERetrying permanent errors like ValueError or KeyError wastes resources and masks underlying code bugs instead of surfacing them for proper debugging

FATALarchitecture_guardrailfinance-C-004

WHENWhen making HTTP requests to Yahoo API endpoints

ACTIONInclude crumb and cookie authentication with every request

CONSEQUENCEWithout proper crumb authentication, Yahoo API returns 401 Unauthorized or HTML error pages instead of JSON data, breaking all downstream data processing

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-23·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。