dragon1086/prism-insight

AI-based stock analysis and trading system

PRISM‑INSIGHT – AI‑driven stock‑analysis & trading platform

What it is – An open‑source system that uses a fleet of specialised LLM agents (defaulting to OpenAI’s GPT‑6‑series, with optional Anthropic Claude Sonnet 5.5) to:

  • Detect “surge” stocks in Korean (KOSPI/KOSDAQ) and US (NYSE/NASDAQ) markets.
  • Generate analyst‑grade PDF reports covering technicals, fundamentals, news, sector outlook, etc.
  • Simulate or automatically execute trades via the Korea Investment & Securities (KIS) API.
  • Push real‑time alerts and multilingual reports to Telegram and a mobile app.

How it works

  1. Screening – Morning/afternoon triggers flag stocks with abnormal price‑volume moves. Each trigger gets a quality weight based on its 180‑day historic success.
  2. AI analysis – A set of agents writes six report sections (technical, flow, company, industry, news, market) and a strategy summary.
  3. Buy decision – A buy‑agent scores the setup (0‑10) against a rubric (fundamentals, momentum, regime). If the score passes, a small initial position (30‑80 % of one of ten equal “slots”) is opened.
  4. Scenario adds – The system creates 2‑4 add‑scenarios that are re‑evaluated daily; additional buys occur only when conditions are met and stay within the original risk budget.
  5. Leader hold & re‑entry – Positions that gain ≥20 % are held up to 40 days with loose stops; stopped‑out or skipped stocks are watched for re‑entry for up to 60 days.
  6. Feedback loop – Closed‑trade outcomes feed a journal that compresses performance metrics and influences future decisions.

Key features

  • 13+ AI agents orchestrated via a visual workflow (see docs/images/aiagent/agent_workflow2.png).
  • Model flexibility – Models are set in .env; defaults are GPT‑6 Luna for reports, GPT‑6.1 Sol for buy/sell, Claude Sonnet 5.5 for optional insight.
  • Multiple access modes – Run locally with Python 3.10+, via Docker, or through a ChatGPT Plus/Pro OAuth proxy (no API key needed).
  • Live leaderboard – “Stance” – Public, tamper‑sealed record of strategy performance (no back‑filled data).
  • Mobile & Telegram – Push alerts, PDF reports, and multilingual Q&A.
  • Open‑source – All code, config templates, and documentation are freely available under AGPL‑v3.

Getting started (quick‑start)

git clone https://github.com/dragon1086/prism-insight.git
cd prism‑insight
./quickstart.sh YOUR_OPENAI_API_KEY   # generates an Apple report

Or use Docker:

export OPENAI_API_KEY=sk-…
docker compose -f docker-compose.quickstart.yml up --build -d
docker exec -it prism‑quickstart python3 demo.py NVDA

Full installation adds Playwright (for PDF generation) and optional API keys for Perplexity news or ADANOS social‑sentiment data.

Performance snapshot (Season 2)

Market Closed trades Win rate Avg. return/trade 10‑slot account return
Korea 211 40.3 % +1.68 % +35.2 %
US 127 33.1 % +0.65 % +8.3 %
Numbers are from live dashboard data; they are simulated results, not investment advice.

Who might use it

  • Individual investors who want AI‑generated research and automated‑execution pipelines.
  • Developers looking to experiment with multi‑agent LLM workflows for finance.
  • Researchers interested in open‑source trading‑simulation frameworks.

Where to learn more


All information above is taken directly from the repository’s README; no additional claims are made.

Related

  • Project
  • Project
  • Project
  • Project
  • Project