Latenode

Automate stock sentiment analysis with EODHD News API and Google Gemini

This template runs on a schedule, reads stock tickers from Google Sheets, fetches the latest headlines from the EODHD News API in JavaScript, and asks Gemini for a sentiment score and rationale.

It then appends ticker, score, and rationale to the sheet. Connect Google Sheets and Google AI. Put the Google AI API key on the Google AI connection. Put the EODHD API key in that JavaScript node.

Updated Sep 16, 2026Est. run: 25sEst. cost: $0.0016
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Scores news sentiment for the tickers you keep in Sheets
  • Fetches headlines from the EODHD News API in JavaScript
  • Uses Gemini for the score and rationale
  • Writes ticker, score, and rationale back to Google Sheets

How it works

1
Trigger

Run on a schedule

The scenario starts at the time you set, then reads the ticker list from Google Sheets.

2
Action

Fetch news for each ticker

JavaScript calls the EODHD News API for the current ticker. Put the EODHD API key in that JavaScript node.

3
AI

Score sentiment with Gemini

Gemini reads the headlines and returns a sentiment score plus a short rationale. Put the Google AI API key on the Google AI connection.

4
Action

Write the row

Google Sheets gets a new row with ticker, score, and rationale.

Setup guide

1

Connect Google Sheets

Add a Google Sheets connection. Use one sheet for tickers and one for results, or one sheet with both tabs. Read the ticker column, then append result rows.

2

Store the EODHD key in JavaScript

Add a JavaScript node that calls the EODHD News API for each ticker. Put the EODHD API key in that JavaScript node.

3

Connect Google AI

Add a Google AI connection and paste your Google AI API key there. Send Gemini the headlines and ask for a score and rationale.

4

Set the schedule and test

Add a schedule trigger, for example each weekday after the close in your timezone. Run once and confirm ticker, score, and rationale land on the sheet.

Requirements

A Google Sheet with a ticker list Latenode can read, and a place to append results
An EODHD API key stored in the JavaScript node
A Google AI API key stored on the Google AI connection

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.