Files
nexus-quant-terminal/backend/app/main.py
T
Claude 3a29553495 feat: Positioning Desk — Deribit dealer GEX, gamma flip, walls, vanna/charm, max pain
Live BTC/ETH positioning from Deribit open interest: Black-76 Greeks on each
expiry's forward, dealer gamma exposure per 1% move under switchable dealer
conventions, gamma profile and flip level, call/put walls, vanna and charm
exposure, per-expiry max pain, ATM IV and implied moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpiqUMAyo4RL5DdQHMWbwE
2026-10-19 05:10:57 +00:00

18 lines
996 B
Python

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from .routers import greeks, surface, market, montecarlo, scenarios, strategies, export, forex, institutional, news, livedata, smile, vol, hedge, xasset, jumps, exotics, eventvol, risk, tarf, deephedge, positioning
app = FastAPI(title="QuantRisk FX Terminal API",
description="Forex options risk analytics — Garman-Kohlhagen model.",
version="3.0.0")
app.add_middleware(CORSMiddleware, allow_origins=["*"],
allow_credentials=True, allow_methods=["*"], allow_headers=["*"])
for router in [greeks, surface, market, montecarlo, scenarios, strategies, export, forex, institutional, news, livedata, smile, vol, hedge, xasset, jumps, exotics, eventvol, risk, tarf, deephedge, positioning]:
app.include_router(router.router, prefix="/api")
@app.get("/")
def root():
return {"status": "ok", "version": "3.0.0", "model": "Garman-Kohlhagen (1983)", "docs": "/docs"}