Skip to content

Fix auto-detect outcomes missing corrected trades + silent failure#62

Merged
heyitsStylez merged 1 commit into
mainfrom
fix-auto-detect-outcomes
May 11, 2026
Merged

Fix auto-detect outcomes missing corrected trades + silent failure#62
heyitsStylez merged 1 commit into
mainfrom
fix-auto-detect-outcomes

Conversation

@heyitsStylez
Copy link
Copy Markdown
Owner

Two bugs in autoDetectOutcomes flow:

  1. syncRysk corrected path (OPEN→EXPIRED for already-synced trades) never fed into autoDetectOutcomes, so re-synced expired options were never upgraded to CALLED/ASSIGNED
  2. CoinGecko price lookup failures were silent — outcome stayed EXPIRED with no user-facing signal to check manually

Fix: collect correctedTrades alongside expiredNew before calling autoDetectOutcomes; toast when price lookup returns null.

Two bugs in autoDetectOutcomes flow:
1. syncRysk corrected path (OPEN→EXPIRED for already-synced trades) never
   fed into autoDetectOutcomes, so re-synced expired options were never
   upgraded to CALLED/ASSIGNED
2. CoinGecko price lookup failures were silent — outcome stayed EXPIRED
   with no user-facing signal to check manually

Fix: collect correctedTrades alongside expiredNew before calling
autoDetectOutcomes; toast when price lookup returns null.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyperwheel Ready Ready Preview, Comment May 11, 2026 6:02am

@heyitsStylez heyitsStylez merged commit 6a9643e into main May 11, 2026
4 checks passed
@heyitsStylez heyitsStylez deleted the fix-auto-detect-outcomes branch May 11, 2026 06:03
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