English

From Natural Language to Executable Option Strategies via Large Language Models

Artificial Intelligence 2026-03-18 v1 Trading and Market Microstructure

Abstract

Large Language Models (LLMs) excel at general code generation, yet translating natural-language trading intents into correct option strategies remains challenging. Real-world option design requires reasoning over massive, multi-dimensional option chain data with strict constraints, which often overwhelms direct generation methods. We introduce the Option Query Language (OQL), a domain-specific intermediate representation that abstracts option markets into high-level primitives under grammatical rules, enabling LLMs to function as reliable semantic parsers rather than free-form programmers. OQL queries are then validated and executed deterministically by an engine to instantiate executable strategies. We also present a new dataset for this task and demonstrate that our neuro-symbolic pipeline significantly improves execution accuracy and logical consistency over direct baselines.

Keywords

Cite

@article{arxiv.2603.16434,
  title  = {From Natural Language to Executable Option Strategies via Large Language Models},
  author = {Haochen Luo and Zhengzhao Lai and Junjie Xu and Yifan Li and Tang Pok Hin and Yuan Zhang and Chen Liu},
  journal= {arXiv preprint arXiv:2603.16434},
  year   = {2026}
}
R2 v1 2026-07-01T11:24:04.245Z