Skip to content
PocketQuant

PocketQuant

Model Builder (Powered by Locus)

Created on 12th April 2026

•

PocketQuant

PocketQuant

Model Builder (Powered by Locus)

The problem PocketQuant solves

Sick of AI hallucinating data analytics?

Expensive datasets, analytics, and news articles?

Need dynamic outputs suited to your needs?

Something relevant TODAY with actual use cases instead of trivial agent task assignments, or a mindless idea generated by AI?

As a quantative developer I ask myself the same things!

PocketQuant is an autonomous financial research agent that transforms complex investment analysis into instant, actionable reports. Powered by real market data, AI and LOCUS.

NO hallucinations, data is run through financial models with real data instead of direct AI

Dynamic, personalized outputs

Real time cost reporting

Context providing

Source citing

Watch our demo video and slides to see what we mean!

The Problem
Serious financial analysis is expensive and slow. A Bloomberg terminal costs $24,000/year. Hiring a quant analyst costs even more. Retail investors and small funds are left making decisions with incomplete information, while the tools that could help them are locked behind institutional paywalls.

What PocketQuant Does
PocketQuant lets anyone run institutional grade financial research in plain English, paying only for the data they actually use, in fractions of a cent per query.

Why It's Different
Every analysis is powered by real, freshly fetched market data, not stale snapshots or hallucinated numbers. The on-chain payment model means you pay $0.02 for a query, not $2,000/month for a subscription you'll only use twice.

Ask it anything:

  • "Run a Bollinger Band analysis on Apple and identify breakout signals"
  • "Simulate 500 Monte Carlo paths for Tesla over the next 30 days"
  • "Build a DCF valuation for Microsoft with bear, base, and bull scenarios"
  • "Analyze how an oil supply disruption in the Strait of Hormuz would impact energy stocks"

How it Works

5 Agents, each specialized

image

  1. Strategist
    Takes your plain English query and decides:

What type of analysis to run (Bollinger Bands, Monte Carlo, DCF, etc.)
Which tickers are involved
Exactly which datasets are needed

  1. Procurement Agent

Calls LOCUS APIs to fetch real market data (Alpha Vantage + Exa)
Pays for each dataset on-chain with USDC
Saves data locally as CSV/JSON files for the next stage
Only fetches what the Strategist asked for — nothing more

  1. Code Writer

Receives the data file paths and analysis instructions
Generates a custom Python script to perform the analysis
Script is tailored to the exact model type (event study, Monte Carlo, etc.)

  1. Code Executor

Runs the generated Python script in a subprocess
Captures the JSON output (returns, volatilities, projections, etc.)
If it crashes, sends the error back to the Code Writer for one auto-fix attempt

  1. Output Manager

Receives the computed results
Writes a polished prose research report
Generates Plotly chart specifications from the real computed data
Returns everything as structured JSON to the frontend

Challenges I ran into

The Model That Wouldn't Stop Thinking

The biggest headache was getting the Code Writer agent to actually output Python code instead of reasoning through the problem out loud. Gemini 2.5 Flash Lite has extended thinking enabled by default, so when asked to write a financial analysis script, it would spend thousands of tokens planning, outlining, and explaining before producing any code. By the time it finished thinking, it would either timeout or output JSON analysis instead of a Python script.
The fix was prefix forcing, instead of asking the model to "write a Python script", we give it the first half of the script already written (imports, helper functions, file comments) and ask it to complete it. A model mid-code has no choice but to keep writing code. We also added a boilerplate injection step that automatically prepends import pandas as pd and the _clean() function if the model forgot them.

Tracks Applied (1)

Using PayWithLocus.com to leverage our suite.

How Locus Was Used PocketQuant uses Locus as its on-chain data payment layer, every piece of market data the agent fetc...Read More

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio