financial-data-fetcher

Fetches multiple tickers’ stock data, calculates key indicators, and auto-generates daily CSV.

Instalação
CLI
npx skills add https://github.com/gracefullight/stock-checker --skill financial-data-fetcher

Instale esta skill com a CLI e comece a usar o fluxo de trabalho SKILL.md em seu espaço de trabalho.

Última atualização em 5/2/2026

Multi-Ticker Stock Checker

This project fetches daily stock data for multiple tickers using yahoo-finance2, computes several technical indicators, and writes a dated CSV to the public directory.

Indicators

  • Close price & volume
  • Relative Strength Index (RSI)
  • Stochastic oscillator %K
  • Bollinger Bands (20-day, 2 standard deviations)
  • Donchian Channels (20-day)
  • Williams %R (14-day)
  • Fear & Greed Index (alternative.me)
  • Derived BUY/HOLD/SELL opinion weighted by indicator reliability and basic pattern detection
  • Basic detection of bullish chart patterns (ascending triangle, bullish flag, double bottom, falling wedge, island reversal)
  • Volatility-adjusted stop loss, take profit, and trailing stop suggestions (1.5×ATR stop, trailing activates after a 0.5×ATR move and never tightens beyond the initial stop)

Usage

  1. Install & run

    bun install
    bun start --ticker=ABCL,BE,BMNR,CIEN,DLO,DNA,GEV,GLW,GOOGL,INTC,IONQ,OPEN,PLTR,POET,TSLA,UPST --sort=desc
    

    Pass any comma-separated list of tickers via --ticker. If omitted, the script exits with an error message. Argument parsing is handled by commander.

    To send Slack notifications for tickers that return a BUY or SELL opinion, provide a webhook URL either via the --slack-webhook option or the SLACK_WEBHOOK_URL environment variable:

    SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXX bun start --ticker=TSLA,PLTR
    # or
    bun start --ticker=TSLA,PLTR --slack-webhook=https://hooks.slack.com/services/XXX
    

    Each Slack message starts with the date, ticker, and opinion followed by bullet-pointed indicator values.

Each run appends data to a file named public/stock_data_YYYYMMDD.csv, with tickers written in alphabetical order by default. Use --sort=desc to write them in reverse order.

A scheduled GitHub Action (.github/workflows/daily-data.yml) executes the script daily and commits new CSV files automatically.