Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

SOTA — Stock Options Trading Agents

SOTA: Stock Options Trading Agents Guided by Option-Implied Return Distributions

Yizhen Xie · Mengyang Liu

Carnegie Mellon University · Amazon

Paper (PDF) · Detailed documentation · Citation

Abstract

As option markets grow and AI advances, agentic systems for option trading are gaining increasing attention. Language-model-based agents can reason over contextual information such as news, but option trading presents a particularly challenging decision problem: a single stock can have thousands of contracts, and the agent must decide both which contracts to trade and how to combine them. Existing approaches often sidestep this complexity by restricting the policy to a fixed strategy structure, such as a straddle, limiting their ability to switch strategies as market conditions change. We present SOTA (Stock Options Trading Agents), an agentic trading framework for structured option-strategy selection. SOTA abstracts the large option universe into strategy-level decisions while deterministic resolvers handle portfolio implementation. We develop SOTA by post-training Qwen3.8-27B with supervised fine-tuning followed by reinforcement learning. SOTA is evaluated on options on nine large-cap U.S. equities and SPY against rule-based and machine-learning strategy selectors in the same trading environment. Over a six-month out-of-sample period, SOTA earns an 18.3% total return with a Sharpe ratio of 1.60 and a maximum drawdown of 8.96%. We also document an asymmetric role of news: news improves frontier-teacher trajectories, but retaining news during reinforcement learning reduces out-of-sample return from 18.3% to −2.7%.

Framework

From contract-level to strategy-level decisions: instead of choosing among thousands of listed contracts, the SOTA agent selects one of nine option-strategy families, and deterministic tools resolve it into contracts, a position size and hedge trades

From contract-level to strategy-level decisions. Left: at the contract level, an agent must choose among thousands of listed contracts that differ in strike, expiry, and call/put type. Right: SOTA instead has the agent select one of nine option-strategy families and its parameters (here, a long straddle), and deterministic tools resolve that choice into exact contracts, a position size, and hedge trades.

SOTA learns which option strategy to trade. Its nine strategy families express four kinds of exposure: direction, volatility, skewness, and curvature. The agent chooses the payoff shape; deterministic resolvers handle contracts, sizing, and hedging.

ExposureStrategy families
DirectionOutright (long call / put), debit vertical, credit vertical
VolatilityLong straddle, long strangle
SkewnessDefined-risk reversal
CurvatureButterfly, iron butterfly, iron condor

These groups illustrate economic exposures; individual strategies can span multiple exposures.

Phase I — Supervised fine-tuning. A frontier LLM generates trading trajectories from anonymized market states and contemporaneous news. Trajectories pass an outcome gate before the student learns from the teacher's decisions.

Phase II — Reinforcement learning. Portfolio rewards net of transaction costs refine the student policy. The reported RL configuration uses market states only.

Reported results

Options on SPY and nine large-cap U.S. equities, evaluated out of sample from March 3 to August 29, 2025.

PolicyTotal return (%)Sharpe ratioMax. drawdown (%)
SOTA18.321.608.96
Equal-weighted rule-5.22-13.465.22
GARCH rule-49.24-6.2749.42
Threshold rule-28.46-1.9533.16
GBDT-49.78-8.5549.78
Logistic-55.45-11.6355.47

SOTA uses Qwen3.8-27B after supervised fine-tuning and reinforcement learning. Full metrics · Evaluation details.

Get started

git clone https://github.com/JenniceXie/sota-options-rl
cd sota-options-rl
pip install -e '.[chain]'

See the detailed documentation for the repository structure, data, market-state and news pipelines, training, and installation options.

Data layout · Provenance · Citation · MIT license

关于 About

SOTA: strategy-level reinforcement learning for options portfolio management — code release for the paper

语言 Languages

Python98.7%
Shell1.3%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
15
Total Commits
峰值: 14次/周
Less
More

核心贡献者 Contributors