๐Ÿ“ˆ Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub

โšก 129 views ยท ๐Ÿ“ˆ Crypto Trading & Stock Market

๐Ÿ’ก Pro Tip โ€” If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

Quick overview

Automates real-time stock quote enrichment in Google Sheets using n8n, OpenAI, and the Octagon Agent. Reads ticker symbols from a spreadsheet, fetches a live quote Skill from GitHub, and writes structured market data back to the sheet.

How it works

  1. Fetches the live SKILL.md file from GitHub using the provided skills_url.
  2. Reads ticker rows from Google Sheets and loops through each ticker symbol.
  3. OpenAI acts as a prompt builder, creating a clean, ticker-specific Octagon Agent prompt.
  4. The Octagon Agent executes the real-time stock quote request.
  5. A code node parses the Octagon response into structured fields.
  6. Google Sheets is updated with quote data such as current price, change, volume, day range, 52-week range, market cap, exchange, date, and the full Octagon response.

Setup

  1. Connect your Google Sheets, OpenAI, and Octagon credentials in n8n.
  2. Provide the skills_url pointing to the live stock-quote SKILL.md file on GitHub.
  3. Point the Google Sheets nodes at your spreadsheet, ensuring it has a ticker symbol column.
  4. Map the output columns (price, change, volume, ranges, market cap, exchange, etc.) to your sheet.
  5. Run the workflow to populate real-time quote data.

Requirements

Customization

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Filter, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup