Skip to content

Adds support for custom option pricing models#9270

Merged
Martin-Molinero merged 9 commits intoQuantConnect:masterfrom
JosueNina:feature-9100-custom-pricing-model
Feb 9, 2026
Merged

Adds support for custom option pricing models#9270
Martin-Molinero merged 9 commits intoQuantConnect:masterfrom
JosueNina:feature-9100-custom-pricing-model

Conversation

@JosueNina
Copy link
Collaborator

@JosueNina JosueNina commented Feb 5, 2026

Description

Adds support for custom option pricing models by implementing a python wrapper and the method SetPriceModel(), allowing users to define their own pricing models beyond the existing QuantLib implementations.

Related Issue

Closes #9100

Motivation and Context

N/A

Requires Documentation Change

N/A

How Has This Been Tested?

It was tested using regression algorithms

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

@JosueNina JosueNina force-pushed the feature-9100-custom-pricing-model branch from 52ee419 to f799cb1 Compare February 5, 2026 18:03
@JosueNina JosueNina changed the title WIP: Custom Option Pricing Model Adds support for custom option pricing models Feb 5, 2026
@Martin-Molinero Martin-Molinero merged commit 76e01bb into QuantConnect:master Feb 9, 2026
7 of 8 checks passed
@AlexCatarino
Copy link
Member

The OptionPriceModelResult ctor doesn't have an overload that includes the implied volatility for Python, because we can't use

public OptionPriceModelResult(decimal theoreticalPrice, Func<decimal> impliedVolatility, Func<Greeks> greeks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Option Pricing Model

3 participants