Skip to content

Commit

Permalink
Fix crash matching Yahoo Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
VibeNL committed Dec 21, 2024
1 parent cb20782 commit 2b347f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExternalDataProvider/Yahoo/YahooRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Task<IEnumerable<MarketData>> GetCurrencyHistory(Currency currencyFrom, C

// Get the best match of the correct QuoteType
// TODO: Fix if score is available
var bestMatch = matches.OrderByDescending(x => x.ShortName.Length).First();
var bestMatch = matches./*OrderByDescending(x => x.Score).*/First();

var symbols = await RetryPolicyHelper.GetFallbackPolicy<IReadOnlyDictionary<string, Security>>(logger).WrapAsync(RetryPolicyHelper.GetRetryPolicy(logger)).ExecuteAsync(() => YahooFinanceApi.Yahoo.Symbols(bestMatch.Symbol).QueryAsync());
if (symbols == null)
Expand Down

0 comments on commit 2b347f8

Please sign in to comment.