MCPcopy Index your code
hub / github.com/bklieger-groq/stockbot-on-groq

github.com/bklieger-groq/stockbot-on-groq @v1.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.2 ↗ · + Follow
118 symbols 307 edges 61 files 0 documented · 0% updated 6mo agov1.1.2 · 2024-08-05★ 1,47412 open issues

Browse by type

Functions 96 Types & classes 22
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AI StockBot Powered by Groq with Tool Use and Generative UI StockBot Powered by Groq: Lightning Fast AI Chatbot that Responds With Live Interactive Stock Charts, Financials, News, Screeners, and More

OverviewFeaturesInterfacesQuickstartCredits

Demo of StockBot

Demo of StockBot providing relevant, live, and interactive stock charts and interfaces

Deploy with Vercel

Overview

StockBot is an AI-powered chatbot that leverages Llama3 70b on Groq, Vercel’s AI SDK, and TradingView’s live widgets to respond in conversation with live, interactive charts and interfaces specifically tailored to your requests. Groq's speed makes tool calling and providing a response near instantaneous, allowing for a sequence of two API calls with separate specialized prompts to return a response.

[!IMPORTANT] Note: StockBot may provide inaccurate information and does not provide investment advice. It is for entertainment and instructional use only.

Features

  • 🤖 Real-time AI Chatbot: Engage with AI powered by Llama3 70b to request stock news, information, and charts through natural language conversation
  • 📊 Interactive Stock Charts: Receive near-instant, context-aware responses with interactive TradingView charts that host live data
  • 🔄 Adaptive Interface: Dynamically render TradingView UI components for financial interfaces tailored to your specific query
  • Groq-Powered Performance: Leverage Groq's cutting-edge inference technology for near-instantaneous responses and seamless user experience
  • 🌐 Multi-Asset Market Coverage: Access comprehensive data and analysis across stocks, forex, bonds, and cryptocurrencies

Interfaces

Description Widget
Heatmap of Daily Market Performance

Visualize market trends at a glance with an interactive heatmap. | Heatmap of Daily Market Performance | | Breakdown of Financial Data for Stocks

Get detailed financial metrics and key performance indicators for any stock. | Breakdown of Financial Data for Stocks | | Price History of Stock

Track the historical price movement of stocks with customizable date ranges. | Price History of Stock | | Candlestick Stock Charts for Specific Assets

Analyze price patterns and trends with detailed candlestick charts. | Candlestick Stock Charts for Specific Assets | | Top Stories for Specific Stock

Stay informed with the latest news and headlines affecting specific companies. | Top Stories for Specific Stock | | Market Overview

Shows an overview of today's stock, futures, bond, and forex market performance including change values, Open, High, Low, and Close values. | Market Overview | | Stock Screener to Find New Stocks and ETFs

Discover new companies with a stock screening tool. | Stock Screener to Find New Stocks and ETFs | | Trending Stocks

Shows the top five gaining, losing, and most active stocks for the day. | Trending Stocks | | ETF Heatmap

Shows a heatmap of today's ETF market performance across sectors and asset classes. | ETF Heatmap |

Quickstart

[!IMPORTANT] To use StockBot, you can use a hosted version at groq-stockbot.vercel.app. Alternatively, you can run StockBot locally using the quickstart instructions.

You will need a Groq API Key to run the application. You can obtain one here on the Groq console.

To get started locally, you can run the following:

cp .env.example .env.local

Add your Groq API key to .env.local, then run:

pnpm install
pnpm dev

Your app should now be running on localhost:3000.

Changelog

See CHANGELOG.md to see the latest changes and versions. Major versions are archived.

Credits

This app was developed by Benjamin Klieger at Groq and uses the AI Chatbot template created by Vercel: Github Repository.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 96
Interface 21
Enum 1

Languages

TypeScript100%

Modules by API surface

components/ui/icons.tsx27 symbols
lib/utils.ts9 symbols
components/stocks/message.tsx7 symbols
components/ui/codeblock.tsx5 symbols
lib/types.ts4 symbols
lib/hooks/use-local-storage.ts3 symbols
lib/hooks/use-copy-to-clipboard.tsx3 symbols
lib/chat/actions.tsx3 symbols
components/ui/sheet.tsx3 symbols
components/chat-panel.tsx3 symbols
lib/hooks/use-scroll-anchor.tsx2 symbols
lib/hooks/use-enter-submit.tsx2 symbols

For agents

$ claude mcp add stockbot-on-groq \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page