← Back to Skills Marketplace
Yfinance
by
temmyraharjo
· GitHub ↗
· v1.0.4
· MIT-0
449
Downloads
0
Stars
3
Active Installs
5
Versions
Install in OpenClaw
/install yfinance
Description
Fetch live and historical stock data from Yahoo Finance, optimised for Indonesia (IDX) stocks. Use this skill when the user asks about stock prices, historic...
Usage Guidance
This skill is coherent with its stated purpose, but consider the following before installing or exposing it:
- Network exposure: The server defaults to binding 0.0.0.0 and the app sets CORS allow_origins=["*"]. If you run this on a machine reachable from the internet, requests from any origin can reach it. Run behind a firewall or bind to localhost (127.0.0.1) when used only by your agent, or add authentication if you intend public access.
- Isolation: Install Python packages in a virtualenv or container rather than system Python to limit impact of package installation.
- Review and test: There are minor bugs/typos visible in the provided source (truncated excerpt and a likely ticker.u typo in the dividends endpoint) — review or run unit tests locally before relying on it in production.
- Dependencies: The install relies on PyPI packages (yfinance, fastapi, uvicorn, pandas). Verify you trust these package sources and keep them up to date.
- If you plan to publish this connector publicly or open port 8000 on a cloud VM, add API access controls and reduce CORS scope to trusted origins.
If you want, I can point out the exact lines to change to bind to localhost, remove permissive CORS, or fix the apparent typo so the service runs more safely and reliably.
Capability Analysis
Type: OpenClaw Skill
Name: yfinance
Version: 1.0.4
The skill bundle is a legitimate stock market data tool that wraps the yfinance library in a FastAPI server. It provides endpoints for real-time prices, historical data, and company fundamentals, with specific optimizations for Indonesian (IDX) stocks. The code in main.py and the instructions in SKILL.md are consistent with the stated purpose, and no indicators of data exfiltration, malicious execution, or harmful prompt injection were found.
Capability Tags
Capability Assessment
Purpose & Capability
Name/description match the included files and dependencies: main.py implements a FastAPI server that uses the yfinance Python package; required binaries (python3, curl) and the listed Python packages are appropriate and expected.
Instruction Scope
SKILL.md instructs the agent to run a local FastAPI server (uvicorn) and to start it on 0.0.0.0:8000 if not running; it also suggests installing requirements. This is consistent with the connector model but carries operational considerations: running on 0.0.0.0 + CORS allow_origins=["*"] will expose the API to the network if the host/network is configured to allow ingress (the README even instructs opening port 8000/NSG). There are also minor code-quality issues visible (a truncated snippet and a probable typo in get_dividends: ticker.u) which would cause runtime errors but not indicate malicious behavior.
Install Mechanism
Install uses pip/requirements.txt and declares yfinance in the install spec — a standard PyPI-based installation. No arbitrary downloads, URL shorteners, or archive/extract steps are present.
Credentials
The skill requests no environment variables, credentials, or config paths beyond typical Python runtime tools. There are no requests for unrelated secrets or system configuration.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It suggests how to run as a systemd service if the user chooses to deploy it persistently, which is expected for a connector service and not intrinsically a privilege escalation.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install yfinance - After installation, invoke the skill by name or use
/yfinance - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.4
yfinance 1.0.4
- Added _meta.json file for metadata support.
- Simplified and condensed SKILL.md instructions and rules.
- Updated SKILL.md with startup logic for automatic server launch.
- Retained essential usage details, but removed extended explanations and examples.
- Response format and API usage notes made more concise.
v1.0.3
**Changelog v1.0.3 – yfinance Skill**
- Added FastAPI server integration for all stock data endpoints (realtime price, history, fundamentals, dividends, splits).
- Updated SKILL.md documentation with detailed instructions, endpoint descriptions, usage examples, and response format.
- Enhanced support and explicit instructions for Indonesian stock tickers (auto .JK).
- Replaced old implementation and metadata files with new README, main API code, and OpenAPI schema.
- Cleaned up unnecessary legacy files for a more streamlined setup.
v1.0.2
- Documentation update only: no changes to code or functionality.
- SKILL.md refreshed with the same feature set, usage instructions, and conventions.
v1.0.1
- Added _meta.json file for improved skill metadata management.
- No functional or user-facing changes introduced in this version.
v1.0.0
Initial IDX-aware batch/single yfinance skill. Public access enabled.
Metadata
Frequently Asked Questions
What is Yfinance?
Fetch live and historical stock data from Yahoo Finance, optimised for Indonesia (IDX) stocks. Use this skill when the user asks about stock prices, historic... It is an AI Agent Skill for Claude Code / OpenClaw, with 449 downloads so far.
How do I install Yfinance?
Run "/install yfinance" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Yfinance free?
Yes, Yfinance is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Yfinance support?
Yfinance is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Yfinance?
It is built and maintained by temmyraharjo (@temmyraharjo); the current version is v1.0.4.
More Skills