Repository navigation
Options read by direction: labels, stats and AI - #51
Merged
Merged
Conversation
A sold put or a put credit spread is stored SHORT, but the trade is bullish, so the old label misled. Option trades now display their directional bias (tooltip keeps the mechanics and the stored side). Stocks and futures keep Long / Short. The stored side is unchanged, so fills, R and P&L are not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Short puts and credit spreads now land in the bullish bucket, long puts in the bearish one. Leak ids stay side:LONG / side:SHORT so saved leaks keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The prompts sent only the opening side, so a bought put reached the model as LONG. Diary photo and text, Day Review, Brain and the weekly summary now send option trades as e.g. "LONG (bought put, bearish)" or "SHORT (sold put, bullish)". Stocks and futures are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A viewer asked whether the journal understands that buying AAPL puts is a short trade. Until now it labelled option trades by the opening side, so a bought put showed as Long and a sold put or put credit spread showed as Short.
Labels
Stats
side:LONG/side:SHORT, so nothing saved breaks.AI
The stored
sidedoes not change, so fills, R and P&L are unaffected.Tests: backend 349 passed (new
test_direction_uses_option_bias_not_opening_sideandtests/test_ai_side.py), frontend 93 passed,CI=truebuild clean.Known limit: a covered call from the wheel shows Bearish on its own, since the label does not know about the shares.
🤖 Generated with Claude Code