Hi, I’m trying to understand how the mechanism of Searchproviders works.
I assumed that the Factory provided getSearchProvider() returns a list of all the configured search providers, and then in FindQuoteProviderDialog is enumerates through them all.
However, looking at the code and doing some testing, it looks that searchByIdentifier only seaches the built-in PP provider: PortfolioPerformanceSearchProvider
The search provider is used when the user opens the “Add new instrument” search dialog
The FindQuotesProviderDialog is about migrating existing instruments to either the built-in provider or CoinGecko
The latter is using the search provider for the built-in case provided for the former.
As @Rafa points out, start with a search provider and then feel free to enhance the second use case.
As it turns out that scenario is slightly more complex because with existing instruments you do not want fuzzy search but be precise and it allows updating multiple instruments without being able to review the prices for each instrument.