olsch01 7b3c5691e1 Fix three compiler errors
1. RecommendationEngine: daysToExp used before declaration
   Move daysToExp/T calculation above selectBestContract() call so the
   variable exists when it is passed as daysToExpiry parameter.

2. YahooFinanceClient: Swift 6 actor-isolation on Decodable conformances
   nonisolated methods on an actor still inherit actor isolation in Swift 6.
   Fix: lift all three decode helpers (yfDecodeChart, yfDecodeOptions,
   yfMakeContract) to file-scope free functions completely outside the actor.
   File-scope functions are naturally nonisolated. Also renamed the private
   JSON model structs to YFChartResponse / YFOptionsResponse to avoid any
   name collisions now that they live at file scope.

3. LogTradeSheet: unused 'let s = strike' binding
   Replace 'let s = strike' with 'strike != nil' since the bound value
   was never referenced inside the if-body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:46:33 -04:00
Description
No description provided
220 KiB
Languages
Swift 70%
Python 30%