Open-source project
Y-Research-SBU/QuantHarness avatar
Y-Research-SBU/QuantHarness

QuantHarness names a Risk agent that has no module, pins no dependency versions, and edits its model choice in the Flask entry point

Official Repository for QuantHarness

2,903 stars624 forksHTMLMIT

At a glance

What is it?
A research-authored multi-agent trading analysis system built on LangChain and LangGraph, where two of the four documented agents read charts as images. The title says high-frequency trading and the data path is the most recent thirty candlesticks.
Who is it for?
Read this as a research artifact rather than a trading system. It is authored by five academics across five universities, it is described in terms of analysis and directives rather than execution, and its output is a text report naming a direction with entry, exit and stop-loss levels.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 97 days ago.
What is it written in?
Mainly HTML, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Y-Research-SBU/QuantHarness2,903 ★ · +27
Star history
Repository2026-10-042026-11-22
Y-Research-SBU/QuantHarness2.9k2.9k

27 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The Decision agent is given a Risk agent that has no file

The features section names five inputs to the final decision and describes four agents.

There is an Indicator agent, a Pattern agent, a Trend agent and a Decision agent. The Decision agent's own entry says it synthesises the outputs of the Indicator, Pattern, Trend and Risk agents, which is five names for four documented components.

The tree agrees with the four. `indicator_agent.py`, `pattern_agent.py`, `trend_agent.py` and `decision_agent.py` are all at the top level, and there is no risk module of any name.

Two other places line up with four rather than five. The summary line that would have introduced the set, describing four specialised agents working together, is present in the file but wrapped in an HTML comment, so it does not render. And the programmatic example prints exactly four values from the result state: the final trade decision and the indicator, pattern and trend reports. There is no risk report to print.

So a fifth agent appears once, in a sentence describing what another agent consumes, and then never again in prose, in code or in the file listing. Whether the risk assessment happens inside the Decision agent or is simply missing is not something the repository says.

The Indicator agent says five indicators and names three

The first agent's description contains a count and a list that do not match.

The claim is that it computes five technical indicators on each incoming K-line, converting raw OHLC data into what the text calls precise, signal-ready metrics. Three are then named. The Relative Strength Index, described as assessing momentum extremes. MACD, described as quantifying convergence and divergence dynamics. And the Stochastic Oscillator, described as measuring closing prices against recent trading ranges.

So two of the five are unnamed, and nothing in the repository, in the tree listing or in the programmatic example, says what they are. The three that are named are the conventional starting set for momentum and mean reversion, which makes it more likely than not that the count is a leftover from an earlier version of the agent rather than a deliberate omission.

The second agent's entry has an editing problem worth noting because it changes who does what. It says that upon a pattern query the Pattern Agent first uses the agent draws the recent price chart, spots the main highs, lows and general up or down moves, compares that shape to a set of familiar patterns, and returns a short plain-language description of the best match.

The clause is garbled mid sentence, but the sequence it describes is clear enough: the agent draws a picture, then reasons about the picture. That is a vision task, and the documentation says so explicitly further down.

Two agents read generated charts, so the model has to accept images

There is a note in the implementation section that changes what kind of model this system needs, and it is the most consequential line in the document.

It says the model requires a language model that can take images as input, because the agents generate and analyse visual charts for pattern recognition and trend analysis. This is not an optimisation preference; it is a stated requirement.

The two agents concerned describe their own method. The Pattern agent draws the recent price chart, identifies its main highs and lows and its general direction, compares the shape against a set of familiar patterns, and returns a short description. The Trend agent works from tool-generated annotated K-line charts with fitted trend channels overlaid, described as upper and lower boundary lines tracing recent highs and lows, and uses them to quantify direction, the slope of the channel and consolidation zones before summarising.

So both of them take a rendered chart as their input rather than a table of numbers, and the renderer is part of the pipeline. That is a defensible design for a chart-pattern task and an unusual one for indicator maths, which the first agent does on raw OHLC values.

The default model shown in the configuration example, when the provider is Anthropic, is Claude Haiku 4.5, a small model, assigned to both the agent slot and the graph slot. So the stated image requirement is met by the default, and the question of whether a small model is the right choice for reading a chart is left open.

The requirements file pins nothing at all, and includes a C library

Nineteen packages, and not one of them carries a version.

The list is Flask, yfinance, pandas, numpy, matplotlib, mplfinance, scipy and TA-Lib for the application and the data, then the model stack: LangChain, the OpenAI and Anthropic and Qwen integrations, LangChain core, LangGraph, plus the OpenAI and Anthropic SDKs directly, and finally IPython, Pillow and requests.

So the framework and the model SDKs all float, which means the behaviour of the agent graph can change with a resolution rather than with a decision by the project. The one constraint in the whole file is implicit and negative: TA-Lib is a C library with a Python wrapper, and installing it from a wheel is the step most likely to fail on a machine without a compiler toolchain.

The environment is pinned more tightly than the packages. The first installation step fixes the interpreter and nothing else:

bash
conda create -n quantharness python=3.11
conda activate quantharness

followed by `pip install -r requirements.txt`.

The documentation knows the fragile step and gives a fallback. If you encounter issues with the TA-Lib Python package, try installing the library itself through conda-forge, or visit the TA-Lib Python repository for detailed instructions. That advice sits immediately after the pip command and before the API key step, which tells you where the friction is.

One loose end: the file lists IPython, which is a development and notebook dependency, in the same set as Flask and LangGraph.

Choosing a provider means editing a branch in web_interface.py

There is a module called `default_config.py` in the tree, and the documented way to change models is not to use it.

The instruction is that you can adjust the default configuration to set your own choice of models or analysis parameters in `web_interface.py`. So the provider selection lives in the Flask entry point as a source branch, and the example given is that branch: an if on the provider being Anthropic, an elif on it being Qwen, and inside each a pair of guarded assignments.

The guards are prefix tests. Each of the two configuration keys, one named for the agent model and one for the graph model, is only overwritten if its current value does not start with the expected family name, so the branch sets a default rather than forcing a value, and matching is done on the leading characters of the model identifier.

Two details about the file itself. The Anthropic branch assigns the same dated Haiku 4.5 identifier to both slots, so in the default configuration there is no distinction between the model that reasons about a chart and the model that orchestrates the graph. And the Qwen branch does not finish: the last line shown sets the agent model to a string that begins `qwen3-m` and stops, with no closing quote.

The section that follows, headed Configuration Options, opens with the single word The and ends there. So both the configuration example and the configuration reference are incomplete in the same file.

The programmatic example uses a timeframe format the web interface never uses

There are two ways in, and they disagree about the vocabulary.

The web interface is a Flask application started with one command and served on the loopback address. Its five documented controls are asset selection across stocks, crypto, commodities and indices, timeframe selection from one minute to daily, a custom date range, the analysis itself, and API key management described as updating your OpenAI key.

The programmatic route imports a module and builds a state dictionary. The keys are the K-line data, an analysis results slot initialised to none, a messages list, a timeframe, and a stock name, with the example using a four hour timeframe and BTC as the symbol. The invocation is made on a graph attribute of the object rather than on the object, and the results are read back from four keys: the final trade decision and three reports.

So the timeframe string in the code example is written in a fourth style, neither the one minute to daily shorthand of the interface nor anything the documentation defines. Nothing states the accepted values.

The prose above the example also describes the call slightly differently, saying the invoke function will return a comprehensive analysis, which is true of the call and less precise than the code, where the return value is a state dictionary you pull individual keys out of.

And the data slot in the example is filled with a placeholder name rather than a defined variable, so the snippet is a shape to fill in rather than something that runs as printed.

The title says high-frequency trading and the window is thirty candles

The project title describes price-driven multi-agent language models for high-frequency trading, and the data path described anywhere in the documentation is a snapshot.

The sentence that sets the scope says the system automatically fetches the most recent thirty candlesticks, and gives the reason as optimal model accuracy. The web interface offers timeframes from one minute to daily and a custom date range, and the market data comes from Yahoo Finance through yfinance, with the documentation recommending the web interface as the route for live data.

Thirty candles at a one minute interval is half an hour of history, and thirty at a daily interval is a month. Neither is a high-frequency window, and this repository documents no order routing, no execution path, no broker connection, no latency budget and no position sizing rule. The output of the Decision agent is a directive that names a direction, entry and exit points, a stop-loss threshold and a rationale, which is a report rather than an order.

Two other things frame how much weight to put on the framing. The Demo section of the document is empty, and the two prominent links are a preprint and a project page rather than any hosted instance. The authors are five people across five universities with two marked as equal contributors, and the repository carries an MIT licence and a Chinese translation of this same document.

There are no published releases for the repository at all, and the last push is dated 2026-08-18.

Editorial conclusion

Read this as a research artifact rather than a trading system. It is authored by five academics across five universities, it is described in terms of analysis and directives rather than execution, and its output is a text report naming a direction with entry, exit and stop-loss levels. Nothing in the repository connects to a broker or places an order, and the title's high-frequency framing sits oddly against a thirty candlestick snapshot. Four things to establish before you build on it. Which agents actually exist, since a fifth is named in passing and has no module. Which versions you are running, because the requirements file constrains nothing. Which model you will point it at, because two of the agents need image input and the default shown is a small one, while choosing a provider means editing the web server source rather than a setting. And whether thirty candles of history is enough for the decision you intend to act on, since that is the stated input size and the reason given for it is model accuracy rather than signal.

Frequently asked questions

What is QuantHarness?

A multi-agent trading analysis system built with LangChain and LangGraph that combines technical indicators, chart pattern recognition and trend analysis, offered both as a Flask web interface and as a Python import. It requires a model that can accept images, because two of its agents read the charts they generate.

Which agents does QuantHarness use?

An Indicator agent for technical metrics, a Pattern agent that draws the price chart and recognises formations in it, a Trend agent that fits channel lines to annotated charts, and a Decision agent that combines reports into a long or short directive. The Decision agent is also described as consuming a Risk agent that has no module in the repository.

What does QuantHarness need to be installed?

A conda environment on Python 3.11 and then pip install -r requirements.txt. That file pins no versions for any of its nineteen packages, and the documentation suggests installing TA-Lib through conda-forge if the pip package fails to build.

Which model providers does QuantHarness support?

OpenAI, Anthropic, Qwen through DashScope, and MiniMax over an OpenAI-compatible API with a 204K context. Keys can be exported as environment variables or entered later in the web interface, though the interface's key management is described as covering the OpenAI key specifically.

How much market data does QuantHarness analyse?

The most recent thirty candlesticks, fetched automatically, with the stated reason being model analysis accuracy. The web interface offers timeframes from one minute to daily, lets you pick a date range, and is the recommended route for live data because it reaches the market through yfinance.

Does QuantHarness place trades?

Nothing in the documentation describes order routing or execution, and no broker connection is mentioned. The Decision agent produces a directive naming a long or short position with entry and exit points and a stop-loss threshold, which is exposed as a report in the result state and in the web interface.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. Y-Research-SBU/QuantHarness on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/y-research-sbu-quantharness.svg)](https://hysenlabs.com/projects/y-research-sbu-quantharness)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/y-research-sbu-quantharness.svg)](https://hysenlabs.com/projects/y-research-sbu-quantharness)

Was this useful?