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

Option Strategy Margin Error #8032

Open
4 tasks done
LouisSzeto opened this issue May 16, 2024 · 1 comment
Open
4 tasks done

Option Strategy Margin Error #8032

LouisSzeto opened this issue May 16, 2024 · 1 comment

Comments

@LouisSzeto
Copy link
Collaborator

LouisSzeto commented May 16, 2024

Expected Behavior

Option Strategy Margin follows CBOE & IB requirements.

Actual Behavior

Buying Power Model of the following OptionStrategies is not:

  • NakedCall, NakedPut:
    • short:
      • Stock Options: Call/Put Price + Maximum ((20% * Underlying Price - Out of the Money Amount), (10% * Underlying Price))
      • Index Options: Call/Put Price + Maximum ((15% * Underlying Price - Out of the Money Amount), (10% * Underlying Price))
    • long: 0
  • ShortCallCalendarSpread, ShortPutCalendarSpread:
    • 0

Potential Solution

Amend OptionStrategyPositionGroupBuyingPowerModel for corresponding strategies

Reproducing the Problem

Refer to OptionStrategyPositionGroupBuyingPowerModel

System Information

NA

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
@Martin-Molinero
Copy link
Member

Current strategies margin were defined & tested against IB actual margin requirements, some are an approximation with some expected small degree of error.
Please share a specific case that the error is off significantly for these strategies so we can fix and test against it

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

No branches or pull requests

2 participants