Alpha Vantage CLI

v1.0.0

Use this skill when users need Alpha Vantage market data or indicators (stocks, ETFs, forex, crypto, commodities, macro, company fundamentals) via the offici...

0· 581·9 current·9 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the provided files: SKILL.md, api_docs reference, and a small Python client that queries https://www.alphavantage.co/query. No unrelated binaries, services, or credentials are requested.
Instruction Scope
Runtime instructions focus on building validated API requests, handling throttling/retries, and protecting API keys. They instruct use of ALPHAVANTAGE_API_KEY and caution against hardcoding keys; no instructions ask the agent to read unrelated files, environment variables, or to contact endpoints other than Alpha Vantage.
Install Mechanism
No install spec; skill is instruction-first and includes a single small Python script. No downloads, archives, or third-party install sources are present — low installation risk.
Credentials
The code and SKILL.md expect an ALPHAVANTAGE_API_KEY (and advise secret manager use), which is proportionate to the purpose. Minor inconsistency: registry metadata lists no required env vars or primary credential even though the client requires ALPHAVANTAGE_API_KEY at runtime.
Persistence & Privilege
Skill is not always-enabled, does not request persistent/system-level privileges, and does not modify other skills or global agent configs.
Assessment
This skill appears to be what it claims: a throttle-aware Alpha Vantage client. Before installing: (1) provide your ALPHAVANTAGE_API_KEY via a secret manager or environment variable (don’t hardcode it), (2) be mindful of Alpha Vantage rate limits and the need for retry/backoff and caching, and (3) review/verify the included script if you will run it in production. Note the registry metadata omits declaring the required env var — ensure you set ALPHAVANTAGE_API_KEY in the agent environment. Autonomous invocation is allowed by default (normal), but because this skill will make outbound requests using your key, only enable it in agents/environments where you trust the key’s use.

Like a lobster shell, security has layers — review code before you run it.

latestvk971r9e5g68cha5pt9cmyp97d981zy5x

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Alpha Vantage

Overview

This skill provides a production-ready workflow for Alpha Vantage API usage: selecting the right endpoints, building validated requests, handling throttling/error responses, and preparing safe public/commercial deployment.

Quick Start

  1. Set API key: export ALPHAVANTAGE_API_KEY=...
  2. For endpoint/params, read references/api_docs.md
  3. For scriptable calls with retry/backoff, use scripts/alpha_vantage_client.py
  4. For public deployment, follow the Deployment Guardrails section before release

Workflow

  1. Classify request type:
  • Price bars or latest price: time series functions
  • Indicators (RSI, SMA, MACD, etc.): technical indicator functions
  • Company info, earnings, statements: fundamentals
  • FX/Crypto/Commodities/Macro: their dedicated function families
  1. Resolve mandatory parameters from references/api_docs.md.
  2. Build request with function=... and apikey=....
  3. Parse response and branch for:
  • HTTP error status
  • Error Message
  • Note (usually rate-limit/throttle condition)
  • Empty/partial payload
  1. If Note/throttled, retry using exponential backoff with jitter.
  2. Normalize output to a stable schema before downstream use.

Implementation Guidelines

Authentication

  • Use ALPHAVANTAGE_API_KEY environment variable by default.
  • Never hardcode keys in source, logs, prompts, or examples.
  • Mask keys in debug output (show only short prefix/suffix).

Reliability and Rate Limits

  • Treat responses containing Note as retriable throttle events.
  • Use bounded retries with exponential backoff and jitter.
  • For multi-symbol jobs, queue calls and pace to plan limits.
  • Cache stable responses (fundamentals, metadata) to reduce quota burn.

Response Validation

  • Validate both transport and payload success.
  • Handle string-encoded numbers safely (float(...)/Decimal as needed).
  • Keep parser logic resilient to minor schema/key ordering changes.

Data Quality

  • Preserve source timestamps/time zones from payload metadata.
  • Do not infer adjusted/unadjusted semantics; use explicit functions.
  • Record the function and params used for reproducibility/auditability.

Deployment Guardrails

Public/Commercial Readiness

Security and Operations

  • Store API keys in secret managers (or environment variables for local dev only).
  • Add circuit-breaking and queue backpressure for upstream rate spikes.
  • Instrument call counts, throttle rate, retry count, and error classes.
  • Add alerting for sustained Note responses and non-2xx response spikes.

Resources

references/

  • references/api_docs.md contains endpoint selection guidance and required parameters.

scripts/

  • scripts/alpha_vantage_client.py provides a reusable request wrapper with:
    • env-based auth
    • timeout and retry logic
    • throttle/error detection
    • optional compact output

Files

4 total
Select a file
Select a file to preview.

Comments

Loading comments…