{"id":27991827,"url":"https://github.com/tbdavid2019/stockbot","last_synced_at":"2025-12-31T14:14:38.378Z","repository":{"id":287153401,"uuid":"962987509","full_name":"tbdavid2019/stockbot","owner":"tbdavid2019","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T07:59:07.000Z","size":573,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T17:54:53.874Z","etag":null,"topics":["chatbot","stock-market"],"latest_commit_sha":null,"homepage":"https://bot.david888.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbdavid2019.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-09T01:37:41.000Z","updated_at":"2025-04-10T07:59:10.000Z","dependencies_parsed_at":"2025-04-10T08:39:59.768Z","dependency_job_id":"0fe3b167-ca9d-44ba-be34-6bf4d045865d","html_url":"https://github.com/tbdavid2019/stockbot","commit_stats":null,"previous_names":["tbdavid2019/stockbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tbdavid2019/stockbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbdavid2019%2Fstockbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbdavid2019%2Fstockbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbdavid2019%2Fstockbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbdavid2019%2Fstockbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbdavid2019","download_url":"https://codeload.github.com/tbdavid2019/stockbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbdavid2019%2Fstockbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265866282,"owners_count":23840938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","stock-market"],"created_at":"2025-05-08T17:54:52.293Z","updated_at":"2025-12-31T14:14:38.373Z","avatar_url":"https://github.com/tbdavid2019.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n \u003cbr\u003e\n \u003cimg src=\"https://i.imgur.com/f1C7EdN.png\" alt=\"AI StockBot Powered by Groq with Tool Use and Generative UI\" width=\"250\"\u003e\n \u003cbr\u003e\n \u003cbr\u003e\n 股票機器人 (StockBot) 由 Groq 提供支援：閃電般快速的 AI 聊天機器人，能即時回應互動式股票圖表、財務數據、新聞、篩選器等功能\n \u003cbr\u003e\n\u003c/h2\u003e\n\n本專案fork自 https://github.com/bklieger-groq/stockbot-on-groq\n修正後的分支\n\n\u003cp align=\"center\"\u003e\n \u003ca href=\"#概述\"\u003e概述\u003c/a\u003e •\n \u003ca href=\"#功能特點\"\u003e功能特點\u003c/a\u003e •\n \u003ca href=\"#Interfaces\"\u003e界面展示\u003c/a\u003e •\n \u003ca href=\"#Quickstart\"\u003e快速開始\u003c/a\u003e •\n \u003ca href=\"#Credits\"\u003e致謝\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n[股票機器人演示](https://github.com/user-attachments/assets/a50fa266-5ae9-4869-a37f-599d7db790d9)\n\u003e 股票機器人演示提供相關、即時和互動式的股票圖表和界面，現已支援台灣股票市場！\n\n[![使用 Vercel 部署](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Ftbdavid2019%2Fstockbot\u0026env=GROQ_API_KEY\u0026envDescription=Get%20a%20Groq%20API%20Key\u0026envLink=https%3A%2F%2Fconsole.groq.com%2Fkeys\u0026project-name=stockbot-clone\u0026repository-name=stockbot-clone\u0026demo-title=StockBot\u0026demo-description=Build%20a%20lightning-fast%20AI%20chatbot%20powered%20by%20Groq%20and%20Vercel%20AI%20SDK%20that%20responds%20with%20live%20stock%20charts%2C%20financials%2C%20news%2C%20and%20screeners.\u0026demo-url=https%3A%2F%2Fgroq-stockbot.vercel.app%2F\u0026demo-image=https%3A%2F%2Fi.imgur.com%2FjJfm8mm.png)\n\n## 概述\n\n股票機器人是一個由 AI 驅動的聊天機器人，它利用 Groq 上的高速推理服務、Vercel 的 AI SDK 和 TradingView 的即時小工具，通過對話方式提供即時、互動式圖表和界面，專門根據您的請求定制。Groq 的高速處理能力使工具調用和響應幾乎瞬間完成，允許通過兩個 API 調用序列與專門的提示返回響應。現在已支援台灣股票市場查詢！\n\n\u003e [!IMPORTANT]\n\u003e  注意：股票機器人可能提供不準確的信息，並不提供投資建議。它僅供娛樂和教學使用。\n\n## 功能特點\n\n- 🤖 **即時 AI 聊天機器人**：與高速回應的 AI 互動，通過自然語言對話請求股票新聞、信息和圖表\n- 📊 **互動式股票圖表**：接收幾乎即時的、上下文感知的響應，包含承載實時數據的互動式 TradingView 圖表\n- 🔄 **自適應界面**：動態渲染 TradingView UI 組件，為您的特定查詢定制金融界面\n- ⚡ **Groq 驅動的性能**：利用 Groq 的尖端推理技術，實現近乎即時的響應和無縫用戶體驗\n- 🌐 **多資產市場覆蓋**：訪問股票、外匯、債券和加密貨幣的全面數據和分析\n- 🇹🇼 **台灣股票市場支持**：現已支援台灣股票市場查詢，包括台積電等台灣上市公司\n- 🤖 **AI 投資分析** (新功能)：整合 AI Hedge Fund API，提供傳奇投資大師（巴菲特、葛拉漢、乾克曼等）的專業投資建議\n\n## AI 投資分析功能\n\nStockBot 整合了 AI Hedge Fund API，可以模擬多位傳奇投資大師的投資風格，為您提供專業的股票分析建議。\n\n### 使用方式\n\n在聊天中直接詢問：\n- \"TSLA 值得買嗎？\"\n- \"分析一下 NVDA\"\n- \"Should I buy AAPL?\"\n\n### 分析師團隊\n\n| 類別 | 分析師 |\n|------|--------|\n| 📊 價值投資大師 | Ben Graham、Warren Buffett、Charlie Munger、Bill Ackman、Peter Lynch、Phil Fisher、Michael Burry |\n| 🚀 成長與創新 | Cathie Wood |\n| 📈 技術與情緒分析 | Technical Analyst、Sentiment Analyst、Nancy Pelosi、WSB |\n| 📐 基本面與估值 | Fundamentals Analyst、Valuation Analyst |\n\n### 目前狀態\n\n\u003e ⚠️ **注意**：由於 Vercel Serverless Functions 對非標準 port (6000) 的連線有限制，目前 API 整合功能在 Vercel 部署環境中暫時無法使用。\n\u003e\n\u003e 🤗 **替代方案**：請移駕至 [AI Hedge Fund on Hugging Face](https://huggingface.co/spaces/tbdavid2019/ai-hedge-fund) 使用完整的 AI 投資分析功能。\n\n### 未來計畫\n\n待 API 服務調整為標準 port (80/443) 或設定 HTTPS 域名後，將可在 Vercel 環境中正常使用。屆時只需修改環境變數：\n\n```bash\n# .env.local\nAI_HEDGE_FUND_HOST=your-api-domain.com\nAI_HEDGE_FUND_PORT=443\n```\n\n### 相關檔案\n\n- `app/api/stock-analysis/route.ts` - API 代理路由\n- `components/tradingview/stock-analysis.tsx` - 分析結果顯示組件\n- `lib/chat/actions.tsx` - 聊天工具定義 (analyzeStockWithAI)\n\n## Interfaces\n| Description | Widget |\n|-------------|--------|\n| **AI Investment Analysis** (NEW)\u003cbr\u003eGet professional investment advice from legendary investors like Warren Buffett, Ben Graham, and more. Currently redirects to Hugging Face Space. | ![AI Investment Analysis](https://huggingface.co/spaces/tbdavid2019/ai-hedge-fund) |\n| **Heatmap of Daily Market Performance**\u003cbr\u003eVisualize market trends at a glance with an interactive heatmap. Supported markets: US (S\u0026P 500), Germany, Australia, Brazil, Canada, Israel. | ![Heatmap of Daily Market Performance](https://github.com/user-attachments/assets/2e3919a3-280b-4be4-adcd-a1ff636bff3e) |\n| **Breakdown of Financial Data for Stocks**\u003cbr\u003eGet detailed financial metrics and key performance indicators for any stock. | ![Breakdown of Financial Data for Stocks](https://github.com/user-attachments/assets/c1c32dac-8295-4efb-ac1e-2eea8a89e7db) |\n| **Price History of Stock**\u003cbr\u003eTrack the historical price movement of stocks with customizable date ranges. | ![Price History of Stock](https://github.com/user-attachments/assets/f588068e-4d95-4188-96fd-866d355c993e) |\n| **Candlestick Stock Charts for Specific Assets**\u003cbr\u003eAnalyze price patterns and trends with detailed candlestick charts. | ![Candlestick Stock Charts for Specific Assets](https://github.com/user-attachments/assets/ce9ea4a8-a1fe-4ce7-be60-3f5d64d50ced) |\n| **Top Stories for Specific Stock**\u003cbr\u003eStay informed with the latest news and headlines affecting specific companies. | ![Top Stories for Specific Stock](https://github.com/user-attachments/assets/fa0693f4-8eca-4d5c-90e7-42afda0d8acc) |\n| **Market Overview**\u003cbr\u003eShows an overview of today's stock, futures, bond, and forex market performance including change values, Open, High, Low, and Close values. | ![Market Overview](https://github.com/user-attachments/assets/79048f3b-9153-41f9-8de5-6b3d45f331dd) |\n| **Stock Screener to Find New Stocks and ETFs**\u003cbr\u003eDiscover new companies with a stock screening tool. | ![Stock Screener to Find New Stocks and ETFs](https://github.com/user-attachments/assets/8ecadec9-69a1-4e18-a9fe-7b30df9f6ff5) |\n| **Trending Stocks**\u003cbr\u003eShows the top five gaining, losing, and most active stocks for the day. | ![Trending Stocks](https://github.com/user-attachments/assets/848c1ebf-7828-4116-a041-6f0ba7156bd5) |\n| **ETF Heatmap**\u003cbr\u003eShows a heatmap of today's ETF market performance across sectors and asset classes. | ![ETF Heatmap](https://github.com/user-attachments/assets/cb2b29d9-acb7-4c8f-90c7-0390e72907f6) |\n\n## Quickstart\n\n\u003e [!IMPORTANT]\n\u003e To use StockBot, you can use a hosted version at [tbdavid-stockbot.vercel.app](https://tbdavid-stockbot.vercel.app/).\n\u003e Alternatively, you can run StockBot locally using the quickstart instructions.\n\n\nYou will need a Groq API Key to run the application. You can obtain one [here on the Groq console](https://console.groq.com/keys).\n\nTo get started locally, you can run the following:\n\n```bash\ncp .env.example .env.local\n```\n\nAdd your Groq API key to .env.local, then run:\n\n```bash\npnpm install\npnpm dev\n```\n\nYour app should now be running on [localhost:3000](http://localhost:3000/).\n\n\n\n## Credits\n\nThis app was originally developed by [Benjamin Klieger](https://x.com/benjaminklieger) at [Groq](https://groq.com) and uses the AI Chatbot template created by Vercel: [Github Repository](https://github.com/vercel/ai-chatbot). Taiwan stock market support was added by [tbdavid2019](https://github.com/tbdavid2019).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbdavid2019%2Fstockbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbdavid2019%2Fstockbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbdavid2019%2Fstockbot/lists"}