QuantHarness: Price-Driven Multi-Agent LLMs for High-Frequency Trading

A sophisticated multi-agent trading analysis system combining technical indicators, pattern recognition, and trend analysis using LangChain and LangGraph.

Stars
★ 2.9k
Last updated
3mo ago
FARS reviewed
Nov 07, 2026
License
MIT
Primary language
HTML

At a glance

How it runs
Web appLibrary / SDK
Works with
Portable with changesOpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python 3.11CondaLLM API keyShell / CLINetwork accessLocal filesystem
Typical use
Quant researchers exploring LLM-based multi-agent strategies for high-frequency trading can use QuantHarness to prototype and backtest technical signals.
Not a fit if
  • Developers using text-only LLMs, as agents require image-capable models
  • Anyone planning to trade live or act on the output as financial advice
Maintenance
Commits in the last 6 monthslast commit 2026-08-18

What does this agent do, and when should you use it?

QuantHarness is an open-source multi-agent trading analysis framework developed by researchers at Stony Brook University and collaborators. It orchestrates four specialized agents—Indicator, Pattern, Trend, and Decision—using LangGraph to transform K-line data into actionable trade directives. The system provides both a Flask-based web interface and a programmatic Python API, supporting live market data via yfinance and integrating with LLM providers such as OpenAI, Anthropic, Qwen, and MiniMax. The project includes detailed documentation and an accompanying arXiv paper (2509.09995).

QuantHarness orchestrates four agents: the Indicator Agent computes technical indicators like RSI, MACD, and Stochastic Oscillator; the Pattern Agent draws price charts and identifies chart patterns; the Trend Agent fits trend channels to quantify market direction; and the Decision Agent synthesizes outputs to generate LONG/SHORT trade directives with entry, exit, stop-loss, and rationale. It is invoked via the TradingGraph class in Python or through a Flask web interface that allows asset, timeframe, and date range selection, and includes API key management.

  1. Quant researchers exploring LLM-based multi-agent strategies for high-frequency trading can use QuantHarness to prototype and backtest technical signals.
  2. Traders seeking AI-assisted technical analysis can interact via the web UI to analyze stocks, crypto, commodities, or indices in real time.
  3. Developers needing a modular trading analysis library can import TradingGraph and integrate it into their own data pipelines.
  4. Educators teaching financial AI can demonstrate multi-agent collaboration and visual analysis.
  5. Users interested in comparing LLM providers can test OpenAI, Claude, Qwen, or MiniMax within the trading context.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Environment variables
OPENAI_API_KEY

How do you install or deploy this agent?

  1. Create and activate a Conda environment: conda create -n quantharness python=3.11 && conda activate quantharness.
  2. Install dependencies: pip install -r requirements.txt.

If TA-Lib fails, try conda install -c conda-forge ta-lib.

  1. Set up an LLM API key: either via the web interface or by setting environment variables like export OPENAI_API_KEY="your_key".

How do you use this agent?

Start the web interface: python web_interface.py, accessible at http://127.0.0.1:5000.
Alternatively, programmatically:

from trading_graph import TradingGraph
tg = TradingGraph()
initial_state = {"kline_data": your_dataframe_dict, "analysis_results": None, "messages": [], "time_frame": "4hour", "stock_name": "BTC"}
final_state = tg.graph.invoke(initial_state)
print(final_state.get("final_trade_decision"))

You can adjust default configurations (e.g., model selection) in web_interface.py.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • dependency security — Pin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.

What are this agent's strengths and limitations?

Pros
  • Multi-agent design provides comprehensive analysis covering indicators, patterns, trends, and decision-making.
  • Supports multiple LLM providers (OpenAI, Anthropic, Qwen, MiniMax), reducing vendor lock-in.
  • Offers both web UI and programmatic access, catering to different user levels.
  • Real-time data from yfinance and visualization enhance interpretability.
Limitations
  • Requires paid LLM API access, leading to recurring costs and external dependency.
  • TA-Lib installation can be platform-specific and tricky, increasing setup friction.
  • Performance relies on LLM latency and quality, which may be unpredictable.
  • Data source is limited to Yahoo Finance, which may lack some assets or historical depth.
  • Intended for research/education only; not for live trading or financial advice.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
QuantHarness: Price-Driven Multi-Agent LLMs for High-Frequency Trading This agent 38 · Major gaps Web appFree + model costs ★ 2.9k 3mo ago HTML OpenAI API · Claude API
NSE Multi-Agent Stock Research System 38 · Major gaps — ★ 126 2mo ago Python OpenAI API
Yuxi – Self-Hosted Multi-Tenant Knowledge Agent Platform 85 · Good Self-hosted serviceFree + model costs ★ 7.8k today Python OpenAI API
TradingAgents Financial Research Framework 74 · Some gaps CLIFree + model costs ★ 124k 8d ago TypeScript OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
38/ 100 5-point scale 1.9 / 5
Trust 8/29
Reliability 5/14
Adaptability 6/18
Convention 9/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust8 / 29 · 1.4/5

The README says users can provide API keys for several model providers through the web interface or environment variables and identifies Yahoo Finance as a data source. The supplied material does not explain permission boundaries, key-storage protections, or data transmission details, so these scores remain low. It describes actionable trade directives and includes an educational-use disclaimer, but offers no evidence of confirmation steps, authorization for trade execution, or rollback. No dependency pinning or security audit is shown. Author names, a paper citation, and acknowledgements provide some attribution, while publisher identity remains unknown.

Reliability5 / 14 · 1.8/5

The README, dependency list, and MiniMax tests identify major components and intended missing-key errors. However, versions are unpinned, the visible tests rely substantially on mocks, integration tests require a real key, and the supplied sample does not include the full test file, so coverage and consistency cannot be established.

Adaptability6 / 18 · 1.7/5

The README describes market analysis for research and education across several asset classes and timeframes, with web and Python entry points. Boundaries are stated only partly through the disclaimer and image-capable-model requirement; scenario triggers, model compatibility, and supported runtime environments are not detailed.

Convention9 / 18 · 2.5/5

The README organizes features, installation, usage, configuration, troubleshooting, and licensing, and gives Conda and dependency setup instructions plus examples. The MIT license text is complete. No changelog is shown; dependencies are unpinned, and support responsibility and update path are only partly indicated by contact details and contribution guidance. Limitations are described sparingly.

Effectiveness7 / 13 · 2.7/5

The system combines indicator, pattern, trend, and risk analysis into structured trade suggestions, with charts and a web interface that may help research workflows. The materials do not quantify accuracy or cost; use requires an external paid model service, and the output is trade guidance, so evidence of net benefit is limited.

Verifiability3 / 8 · 1.9/5

Some README claims about features, setup, and configuration are echoed by the supplied code and test samples, and the tests state that MiniMax integration requires an API key. The sample is incomplete and many claims lack inspectable implementation or results. The disclaimer distinguishes research use from financial advice, but the materials do not clearly define how analysis conclusions are separated from verified facts.

Risks and how to mitigate them
  • Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Outputs include LONG/SHORT, entry, exit, and stop-loss suggestions; the README says the software is for education and research, not financial advice.
  • The system requires API keys for external model services; the supplied materials do not explain key-storage protections or the scope of analysis data sent.
  • Dependency versions are unpinned and the supplied test excerpt is incomplete; this review did not execute code or independently verify results.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 2e64c7befa75
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/quantharness.svg)](https://followagents.com/en/agents/quantharness)
<a href="https://followagents.com/en/agents/quantharness"><img src="https://followagents.com/badge/quantharness.svg" alt="FARS review"></a>

FAQ

What are the hardware/software prerequisites?
You need Python 3.11, Conda, and the TA-Lib dependency. Network access is required for data and an LLM API key (e.g., OpenAI).
Can this be used for live trading?
No, it's for educational and research purposes only. The README explicitly disclaims financial advice.
How do I manage API keys?
You can enter them in the web interface or set environment variables like OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.
What if TA-Lib fails to install?
Try conda install -c conda-forge ta-lib or refer to the official TA-Lib Python repository for platform-specific instructions.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts