Skip to content
Back to skills

Stock Checker

ASecurity

Fetches the current stock price for a given ticker symbol using free public APIs. Returns the price in USD along with daily change data. No API key required.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 10, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 10, 2026

npx -y skills add acrid-auto/skill-creator --skill stock-checker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stock Checker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stock Checker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/acrid-auto-stock-checker/badge)](https://www.skillsdirectory.com/skills/acrid-auto-stock-checker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# SKILL: stock-checker

## Description

Fetches the current stock price for a given ticker symbol using free public APIs. Returns the price in USD along with daily change data. No API key required.

## Usage

Use when you need to check a stock price, compare current values, or get a quick market snapshot for a ticker.

**Triggers:** "What's the price of AAPL?", "Check stock price for TSLA", "Get me a quote on MSFT"

## Inputs

| Parameter | Required | Type | Default | Description |
|-----------|----------|------|---------|-------------|
| `ticker` | Yes | string | — | Stock ticker symbol (e.g., `AAPL`, `TSLA`, `GOOGL`). Must be 1-5 uppercase alpha characters. |

## Outputs

Structured text response:

```
**<TICKER>** — $<price> USD
Change: <+/->$<amount> (<+/-><%>)
Volume: <volume>
As of: <timestamp>
```

## Steps

1. **Validate input** — Confirm `ticker` is 1-5 alphabetic characters. Convert to uppercase if needed. If invalid, return: "Invalid ticker symbol. Please provide 1-5 letters (e.g., AAPL)."

2. **Fetch stock data** — Use WebFetch to call:
   ```
   https://query1.finance.yahoo.com/v8/finance/chart/<TICKER>?range=1d&interval=1d
   ```

3. **Check response** — If the response contains an error or the result array is empty:
   - Return: "Could not find data for ticker '<TICKER>'. Verify the symbol and try again."

4. **Extract price data** from the JSON response:
   - `price`: `chart.result[0].meta.regularMarketPrice`
   - `previousClose`: `chart.result[0].meta.chartPreviousClose`
   - `volume`: `chart.result[0].meta.regularMarketVolume`
   - Calculate `change = price - previousClose`
   - Calculate `changePercent = (change / previousClose) * 100`

5. **Format and return**:
   ```
   **<TICKER>** — $<price> USD
   Change: <+/->$<change> (<+/-><%changePercent>)
   Volume: <volume>
   As of: <current timestamp>
   ```

## Error Handling

| Scenario | Action |
|----------|--------|
| Invalid ticker format | Return validation error with format hint |
| API unreachable / timeout | Return: "Unable to reach market data API. Try again shortly." |
| Ticker not found | Return: "No data found for '<TICKER>'. Check the symbol." |
| Market closed / stale data | Still return last known price, note "Market closed" in output |

Files in this skill

  • README.md1.1 KB
  • SKILL.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.