Skip to content

lisekarimi/prism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’น PRISM - Position Risk Intelligence & Swap Monitor

AI-powered swap trading monitoring system using CrewAI multi-agent framework.

๐ŸŒ Live Demo: prism.lisekarimi.com

PRISM Dashboard

๐Ÿ“Š What It Does

PRISM monitors USD SOFR swap trading positions in real-time and automatically generates trading signals when profit/loss thresholds are hit.

Note: This demo is specifically configured for USD SOFR (Secured Overnight Financing Rate) swaps only.

๐Ÿ—๏ธ Architecture

PRISM Workflow

5 AI Agents working together:

  1. Market Data Agent - Fetches current USD SOFR swap rates (2Y, 5Y, 10Y, 30Y)
  2. Position Manager Agent - Loads trader's swap positions from database
  3. Risk Manager Agent - Analyzes market conditions and sets dynamic profit/loss thresholds
  4. Risk Calculator Agent - Calculates P&L for each position
  5. Trading Decision Agent - Generates CLOSE/HOLD signals based on thresholds

Thresholds:

  • Close position when profit โ‰ฅ $50K
  • Close position when loss โ‰ค -$25K
  • Otherwise HOLD

๐Ÿ› ๏ธ Tech Stack

  • CrewAI - Multi-agent orchestration
  • PostgreSQL - Position & rate storage (Neon)
  • Gradio - Web dashboard
  • Python 3.11 - Runtime

๐Ÿ“‹ Pre-requisites

Development Tools:

๐Ÿ“ฅ Installation Instructions

  1. Clone the Repository:

    git clone https://github.com/lisekarimi/prism.git
    cd prism
  2. Set Up Environment:

    • Copy the .env.example to .env and fill in the required environment variables.

๐Ÿš€ Quick Start

make dev

๐Ÿ—„๏ธ Database Schema

  • swap_positions - Trader's swap portfolio
  • market_rates - Historical rate data
  • trade_signals - AI-generated trading decisions

About

๐Ÿ’น AI-powered swap trading monitoring system using CrewAI multi-agent framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published