使用说明
Volatility Sentinel
In the works. Python-based agentic system using LangChain to detect options risk via MCP and RAG. Features a custom MCP server executing Black-Scholes and Monte Carlo models, and a Django REST API that exposes the same pricing engine over HTTP with Redis-backed caching for expensive Monte Carlo simulations. Integrates a RAG pipeline for live market news, enabling the agent to dynamically adjust volatility and identify theoretical price edges in real-time.
Tech Stack:
- Python
- Django / Django REST Framework
- Redis
- Databricks
- SQL
- TypeScript
- PySpark (Apache Spark)
- LangChain
Pricing API
Run the Django server:
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Requires a Redis instance reachable at REDIS_URL (defaults to redis://127.0.0.1:6379/1).
POST /api/black-scholes/—{S, K, T, r, sigma, option_type}→ price, delta, vegaPOST /api/monte-carlo/— same params plus optionalnum_simulations; identical requests are served from Redis instead of resimulating