Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greeks calculation on expiration date #8465

Merged

Conversation

jhonabreul
Copy link
Collaborator

Description

Allow greeks calculation on expiration day, by adjusting expiration date to market close.

  • For general options and PM-settled index options, the expiration date time is market close of the last trading date, which is the actual expiration date, or the last trading date before it if market is close.
  • For AM-settled index options, which settled the morning after the last trading day, the expiration time is adjusted to the next market open after the last trading day.

Related Issue

Closes #8461

Motivation and Context

Greeks should be able to be calculated on the expiration date, before the contract gets delisted.

Requires Documentation Change

How Has This Been Tested?

Unit tests

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>

This allows to compute accurate time till expiry for greek indicators to be able to calculate on the actual expiration date before market close
@jhonabreul jhonabreul merged commit a8592e0 into QuantConnect:master Dec 13, 2024
6 of 7 checks passed
@jhonabreul jhonabreul deleted the bug-8461-greeks-on-expiration-date branch December 13, 2024 22:23
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.

Greeks indicators should be able to calculate on expiration date
2 participants