@@ -95,11 +95,11 @@ type ExternalConfigV1 struct {
9595 // InterestRates maps currency codes to annual interest rates on cash balances.
9696 // Used by projected-income to estimate cash interest income (e.g., {"USD": 0.0312}).
9797 InterestRates map [string ]float64 `yaml:"interest_rates"`
98- // MarketDataProviders is an ordered list of options data providers for covered call screening.
98+ // OptionsDataProviders is an ordered list of options data providers for covered call screening.
9999 // Valid values: "marketdata_app" (requires MARKETDATA_APP_TOKEN env var),
100100 // "polygon" (requires POLYGON_TOKEN env var), "yahoo" (free, no greeks).
101101 // Default: ["yahoo"].
102- MarketDataProviders []string `yaml:"market_data_providers "`
102+ OptionsDataProviders []string `yaml:"options_data_providers "`
103103}
104104
105105// ExternalTaxConfigV1 holds capital gains tax rate configuration.
@@ -185,9 +185,9 @@ type Config struct {
185185 TaxRateInterest float64
186186 // CashInterestRates maps currency codes to annual interest rates on cash balances.
187187 CashInterestRates map [string ]float64
188- // MarketDataProviders is the ordered list of options data providers for covered call screening.
188+ // OptionsDataProviders is the ordered list of options data providers for covered call screening.
189189 // Valid values: "marketdata_app", "polygon", "yahoo". Default: ["yahoo"].
190- MarketDataProviders []string
190+ OptionsDataProviders []string
191191}
192192
193193// SymbolConfig holds classification metadata for a symbol.
@@ -303,7 +303,7 @@ func NewConfigV1(externalConfig ExternalConfigV1, dirPath string) (*Config, erro
303303 cashInterestRates = make (map [string ]float64 )
304304 }
305305 // Parse and validate market data providers, defaulting to ["yahoo"] if not configured.
306- marketDataProviders := externalConfig .MarketDataProviders
306+ marketDataProviders := externalConfig .OptionsDataProviders
307307 if len (marketDataProviders ) == 0 {
308308 marketDataProviders = []string {"yahoo" }
309309 }
@@ -312,7 +312,7 @@ func NewConfigV1(externalConfig ExternalConfigV1, dirPath string) (*Config, erro
312312 case "marketdata_app" , "polygon" , "yahoo" :
313313 // Valid provider name.
314314 default :
315- return nil , fmt .Errorf ("invalid market_data_providers value %q, must be \" marketdata_app\" , \" polygon\" , or \" yahoo\" " , providerName )
315+ return nil , fmt .Errorf ("invalid options_data_providers value %q, must be \" marketdata_app\" , \" polygon\" , or \" yahoo\" " , providerName )
316316 }
317317 }
318318 return & Config {
@@ -330,7 +330,7 @@ func NewConfigV1(externalConfig ExternalConfigV1, dirPath string) (*Config, erro
330330 AdditionLastPrices : additionLastPrices ,
331331 RealtimeSymbols : realtimeSymbols ,
332332 CashInterestRates : cashInterestRates ,
333- MarketDataProviders : marketDataProviders ,
333+ OptionsDataProviders : marketDataProviders ,
334334 }, nil
335335}
336336
0 commit comments