{
  "id": 2197432,
  "title": "Backtest SPX dealer-gamma rules from your AI assistant",
  "url": "https://urgent.news/2026/08/20/backtest-spx-dealer-gamma-rules-from-your-ai-assistant",
  "topic": "ai",
  "section": "AI",
  "published": "2026-08-20T18:21:11.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/gexlive/backtest-spx-dealer-gamma-rules-from-your-ai-assistant-2ffn"
  },
  "original_language": "en",
  "account": "The article outlines the capabilities of a proprietary AI assistant, hosted by gex.live, designed to analyze and backtest SPX dealer-gamma rules. The assistant requires a Lab token to access its tools, which are metered credits similar to those used on the site. It offers two primary functions: retrieving finished session data for analysis and compiling and running custom trading rules through a metered lab process.\n\nKey features include:\n- Data retrieval: Users can access finished SPX sessions with details such as OHLC, gamma flips, walls, hold bands, net-gamma percentile, and ATM IV. This data is free to retrieve but must be called via the `get_session` function, with a maximum of 50 sessions per call.\n- Rule compilation: The `lab_compile` function allows users to transform verbal trading ideas into testable rules. The assistant returns a compiled specification, may ask clarifying questions, or provide compilation errors.\n- Rule execution: The `lab_run` function executes the compiled rule through a backtesting process, followed by a quant optimization step using LightGBM. This process costs one credit and provides a truthful verdict on the rule's effectiveness, including performance metrics for different eras and a holdout period.\n\nThe assistant maintains a state of the user's Lab, including all active ideas, their stages, results, and the current credit balance, accessible via the `lab_state` function. Users can interact with their ideas through the `lab_idea` function, which allows actions such as updating, deleting, or adjusting the display/alert settings for specific ideas.\n\nUnlike a traditional signal service or live feed, the Lab operates on data from completed sessions, not real-time market positioning. The assistant is designed to work with Claude, Cursor, ChatGPT, or any MCP client, with the option to add the MCP server as a transport for these clients. The service is accompanied by OAuth-based authentication for Cursor and the CLI, and a separate OAuth facade for web and desktop applications.",
  "summary": "gex.live has an MCP server. Add it to Claude, Cursor, ChatGPT or any MCP client and the assistant can read the dealer-positioning archive and drive the backtesting Lab on your behalf. The one-line version is the title. Here is the rest. Two tiers, one rule: free data stays free Free, no key — the same finished-session data that is free on the website: list_sessions — finished SPX sessions in the…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}