Fetches multiple tickers’ stock data, calculates key indicators, and auto-generates daily CSV.
npx skills add https://github.com/gracefullight/stock-checker --skill financial-data-fetcherقم بتثبيت هذه المهارة باستخدام واجهة سطر الأوامر (CLI) وابدأ في استخدام سير عمل SKILL.md في مساحة عملك.
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.
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.