Skip to content

smgpulse007/AlphaQuant

Repository files navigation

Agentic Alpha Engine (AlphaQuant)

A local-first, Docker-first research stack for building structured market and macro intelligence from public data, agent workflows, and lightweight model inference.

Research/engineering demo only. Not financial advice, not an investment product, and not intended for live trading.

Portfolio relevance

Demonstrates local-first agent orchestration, stateful workflows, retrieval/storage architecture, verification rules, and structured synthesis across a multi-service FastAPI, Docker, Postgres, Redis, Qdrant, MinIO, OpenSearch, and Ollama stack.

Why this project exists

AlphaQuant is designed to help researchers and developers prototype an end-to-end alpha workflow without depending on cloud-only tooling:

  • ingest and normalize macro, cross-asset, options, and politician-trade signals;
  • run agentic analysis over those signals with a clear orchestration layer;
  • export structured “Fusion” reports that can be reviewed, tested, and iterated locally.

This repo is intentionally local-first: the core path is reproducible on a developer laptop, and the compose stack makes it easy to run the API and supporting services together.

Demo assets

Terminal setup preview

UI demo GIF

UI screenshot

The terminal preview above shows the setup flow in sequence. The raw VHS source files are also available in artifacts/quick-setup.tape and artifacts/setup-demo.tape.

What is included

Quick start

  1. Copy the environment template and add your local values.
    • cp .env.example .env
  2. Start the local stack.
    • docker compose up -d --build
  3. Pull the required local models once.
    • docker exec -it ollama ollama pull llama3.1:8b mxbai-embed-large deepseek-r1:7b
  4. Run the API and try the sample payloads in samples.
    • POST http://localhost:8000/run

Local development

Python

  • python -m pip install -r requirements.api.txt
  • python -m pip install -r requirements.worker.txt

Frontend

  • cd frontend
  • npm install
  • npm run dev -- --host 127.0.0.1 --port 5173

Small-world test

  • python scripts/run_small_world.py

Architecture at a glance

  • API layer: FastAPI routes and worker entry points
  • Orchestration: LangGraph-style state and graph planning helpers
  • Agents: discovery, crawler, normalization, entities, macro, cross-asset, sectors, technicals, flows, politicians, synthesis, verification
  • Storage: Postgres, Redis, Qdrant, MinIO, OpenSearch
  • Local models: Ollama + embeddings for offline-friendly experimentation

Notes for contributors

  • All timestamps are recorded in PT.
  • The verifier includes a double-source rule and warnings for missing corroboration.
  • The workflow is intentionally modular so each agent/tool can be upgraded incrementally.

Contributing

Contributions are welcome. Please open an issue first for larger changes, then submit a pull request with a clear summary and test evidence.

License

This project is released under the MIT License. See LICENSE for details.

About

Local-first multi-agent research intelligence stack demonstrating agent orchestration, FastAPI, Docker, Postgres, Redis, Qdrant, MinIO, OpenSearch, and Ollama.

Topics

Resources

License

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors