Skip to content
Sergey Gerasimov edited this page Oct 22, 2026 · 1 revision

FAQ

Is this real trading?

No. DerivLab is an educational simulator. It cannot place orders, does not connect to a broker, and uses synthetic option chains. Nothing here is investment advice.

Do I need an OpenAI key?

No. The AI Arena works fully with deterministic local models. A key adds live critic and news prose; the app shows which model is active.

Why gpt-4.1 instead of gpt-5?

gpt-5 and gpt-5-mini require organization verification on the tested OpenAI account and returned 404. gpt-4.1 and gpt-4.1-mini worked and are the recommended fallback. If your organization is verified, configure GPT-5 in .env; the app will use it.

Can I use Claude, Gemini, Qwen, or a local model?

The client is OpenAI-compatible and also supports Anthropic. Ollama, vLLM, and LM Studio work through the compatible endpoint. See AI Model Guide.

Is the market data real?

Historical spot data comes from Yahoo Finance. Option chains are synthesized with Black-Scholes from realized volatility. The demo ships with a historical seed and works offline.

Why does the AI report sometimes fall back to local?

The report must contain exactly three specific headings; the wire must be valid JSON. If an LLM times out, violates the contract, or returns malformed output, the local critic/news takes over. The Model stack tab shows the reason.

Can I deploy it for a class or team?

Yes. Use Docker Compose, bind to loopback or put it behind an authenticated reverse proxy, and use Docker secrets for the LLM key. See Deployment.

Does it start automatically after a server reboot?

No. The Compose services explicitly use restart: "no". This is intentional.

How do I run the tests?

pytest -q
ruff check .

See Testing & CI.

How do I contribute?

Open an issue, create a focused branch, add tests, and open a pull request. main requires the three status checks.

Clone this wiki locally