Two-Agent SPX 0 DTE Bear Call Experiment ======================================== ``ai_spx_zero_dte_bear_call_team.py`` tests a strict two-agent architecture: * The researcher has ``allow_trading=False`` and gathers current SPX, account, chain, contract, Greek, quote, and package-price evidence. * The trader has ``allow_trading=True``. It independently refreshes the evidence, validates every active Rule, decides whether to trade, submits any spread through ``orders_submit_multileg``, and verifies the order and resulting positions. Python schedules the two calls and passes the research summary forward. It does not select contracts or submit orders. The active Rules require SPX 0 DTE calls, a short call near 0.20 delta, a long call exactly five points higher, one new package per trading day, and atomic entry and exit. The active broker must support atomic packages. Otherwise LumiBot rejects the request before submitting any child leg. .. code-block:: bash export GEMINI_API_KEY="your-key" export BACKTESTING_DATA_SOURCE="ThetaData" export DATADOWNLOADER_BASE_URL="https://:8080" export DATADOWNLOADER_API_KEY="your-downloader-key" python -m lumibot.example_strategies.ai_spx_zero_dte_bear_call_team Use a paper broker and a short historical window before considering any live workflow. The example proves architecture and mechanics, not profitability. .. literalinclude:: ../lumibot/example_strategies/ai_spx_zero_dte_bear_call_team.py :language: python :linenos: