AIToday
Large Language ModelsAI Stocks & MarketsZenn AI/MLPublished: Nov 22, 2026, 04:00 JST

Python filters, one Gemini API call: a no-handoff stock research setup

Send on LINE
Python filters, one Gemini API call: a no-handoff stock research setup

3 Key Points

  1. What happened

    The investor's four-stage pipeline runs on a scheduled cloud environment, pulls company disclosures and public data, screens it with Python against financial criteria, and sends the filtered JSON to Gemini API in one request.

  2. Why it matters

    Batching into a single call cuts duplicated system prompts, lowers rate-limit (429) and timeout risk, and lets the model rank the day's items by relative priority, the author says.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The argument starts from a common complaint—that AI stock predictions don't work—and reframes it: the problem is the premise of handing the whole job to AI, not the AI itself. The author's table draws the line by task type, with numeric comparison and bulk screening marked as clearly better suited to conventional code, while reading context and summarizing unstructured text are marked as clearly better suited to an LLM.

The design follows from that split. The Python layer mechanically rejects anything that fails the investor's own criteria (financial indicators, rate of change, specific conditions), and only what survives reaches the model. That ordering is meant to structurally prevent the familiar failure where an AI writes a plausible-sounding explanation for information that was never relevant.

The pipeline itself is described as four stages, running on a scheduled cloud environment such as a CI/CD setup, fetching timely disclosures and public data, and ending with a notification in the chat tool the author already uses. The stated endpoint is not automated trading but a 30-second human triage decision, and the author closes by saying the same boundary-drawing applies to business system development and DX initiatives.

FAQ
Why send everything to Gemini API in one request instead of one call per candidate?
A single request avoids resending the system prompt repeatedly, reduces rate-limit (429) and timeout risk, and lets the AI rank multiple items against each other by relative priority.
What does the AI actually decide?
It does not answer buy or sell. It summarizes what was announced, lists positive factors and risk factors, and assigns a priority for reading the original source.
What is the stated goal of the system?
Not automated trading, but a state where someone working full-time on weekdays can avoid missing important primary information and decide in 30 seconds whether to read it.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleLangChain lays out a "knowledge factory" for AI agents