Skip to content

Adding support for option trade and their corresponding profit and loss. - #17

Open
ageekymonk wants to merge 1 commit into
wealthfolio:mainfrom
techniumlabs:option-trades
Open

Adding support for option trade and their corresponding profit and loss.#17
ageekymonk wants to merge 1 commit into
wealthfolio:mainfrom
techniumlabs:option-trades

Conversation

@ageekymonk

Copy link
Copy Markdown

This PR fixes option trade handling in swingfolio-addon so option positions are classified, matched, and valued correctly for both closed and open positions.

It addresses:

  1. Option opening/closing classification via subtype semantics
  2. Short option matching behavior
  3. Correct realized/unrealized P/L direction for short positions
  4. Correct option notional scaling (1 contract = 100)
  5. Coverage via additional option-specific test cases while retaining existing tests

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.

1 participant