← All Projects

IEEE AIRC 2026 · Applied AI research

SynTrade: A Hybrid Multi-Agent Trading System

A five-stage Python research system that combines financial news sentiment, machine learning, technical signals, and rule-based verification to make simulated trading decisions.

My role · Primary Developer & Research Co-Author

  • Python
  • Gemini 2.0 Flash
  • Pydantic
  • LightGBM
  • Backtrader
How I used the stack

Technology stack

Python
Runs the five-stage pipeline and records decisions for historical analysis.
Gemini 2.0 Flash
Extracts structured sentiment and credibility signals from financial news.
Pydantic
Validates structured model output before it is passed to the next stage.
LightGBM
Uses saved models to score sentiment and credibility features.
Backtrader
Simulates decisions on historical data and compares the strategy with baselines.

The problem

Financial news offers context that price indicators can miss, but a positive headline can conflict with a technical signal or arrive too late to be useful. SynTrade investigates a modular way to combine qualitative information with quantitative signals while checking the handoffs between them.

The result is a Python research system for historical evaluation. It produces structured, traceable decisions rather than relying on an unconstrained language-model response.

My contribution

I jointly developed the system with Ryan Mastropaolo across all five stages, serving as the primary programmer and a research co-author. Ryan led most of the paper writing. Christopher Santorelli provided research mentorship, technical feedback, and review.

Five stages, explicit handoffs

  1. 01

    Scraper

    Collects timestamped news, filings, fundamentals, macro data, and technical indicators.

    Output · Market snapshot

  2. 02

    Discriminator

    Uses Gemini to extract structured sentiment and credibility signals from the collected information.

    Output · Signals + features

  3. 03

    Model Scorer

    Applies saved LightGBM models to score sentiment and credibility probabilities.

    Output · Calibrated scores

  4. 04

    Verifier Critic

    Checks structure, ticker consistency, freshness, and contradictions between signals.

    Output · Verification verdict

  5. 05

    Executor Policy

    Combines verified scores and technical signals with guardrails and position-sizing rules.

    Output · Buy / sell / hold

Structured outputs pass through five stages, from market data to a simulated decision. Decisions are logged for historical evaluation in Backtrader; this pipeline does not represent a live brokerage integration.

The public source uses JSON-serializable schemas to pass market snapshots, extracted signals, model probabilities, verification issues, and decisions between stages. Decision logs support later analysis and simulation.

Data, language models, and scoring

The scraper organizes market information by ticker and timestamp. Its tools cover news, filings, fundamentals, macroeconomic context, and technical indicators. The source and research documentation include Event Registry/newsapi.ai, Alpha Vantage, Finnhub, FRED, and yfinance.

Gemini 2.0 Flash extracts sentiment and credibility signals. The scorer combines those signals with predictions from saved LightGBM models and includes fallback behavior when a model is unavailable. The repository contains the model files and feature configuration.

Model training is described as supervised calibration in the research summary. The public repository does not include the original training workflow or dataset, so training details and reported results cannot be independently reproduced from those files alone.

Verification and decision policy

The verifier checks schema errors, ticker mismatches, overconfidence, ungrounded signals, and disagreements between language-model and model scores. It also checks technical contradictions, such as bullish sentiment alongside an overbought RSI. Freshness checks apply to current data; historical mode deliberately skips them.

The executor combines sentiment, credibility, confidence, and technical indicators to choose buy, sell, or hold. Guardrails can force a hold when verification rejects a signal or credibility and confidence are too low. Position sizing incorporates risk adjustments; the backtesting code also includes exit conditions.

Historical evaluation

The research paper reports an evaluation across 10 equities from December 2023 through December 2025, comparing SynTrade with buy-and-hold and a technical-only strategy. The source includes Backtrader evaluation and baseline comparison code.

Scroll horizontally in the table to compare all three strategies.

Reported historical backtest results
MetricSynTradeBuy-and-HoldTechnical-only
Total return3.63%6.83%2.58%
Sharpe ratio1.560.39−0.41
Maximum drawdown1.34%4.15%4.04%
Executed trades19N/A109

SynTrade had the highest reported Sharpe ratio and smallest drawdown in this experiment. Buy-and-hold had the higher total return: 6.83%, compared with SynTrade’s 3.63%. The comparison illustrates a trade-off between return, risk, and trading activity.

These figures are reported in the research paper, as summarized by the project owner. They are historical research backtests, not live investor returns or a guarantee of future results. This portfolio update has not independently rerun the original experiment.

Limitations and next steps

  • The research summary identifies monthly data frequency, API rate limits, and a small supervised dataset as constraints.
  • A historical simulation depends on data availability, timing assumptions, transaction costs, and the chosen evaluation period. A stronger evaluation would check for look-ahead effects and test additional periods and assets.
  • Publishing the training workflow and original decision logs would make the reported experiment easier to reproduce.

Engineering takeaways

The project makes each agent’s responsibility and output explicit. Schema checks and verification rules give downstream policy code a way to handle contradictory or incomplete information, while logged decisions connect the pipeline to a measurable historical evaluation.