The YF API search endpoint has two functionalities that would be nice to add to yfinance:
Search for ticker symbols using the company name or part of it, as well as the exchanges where it is traded. This query is used in the site to autocomplete the search.
List the latest news about a company or ticker
The information is easily accessible using the endpoint https://query2.finance.yahoo.com/v1/finance/search?q=apple, see the quotes and news keys of the JSON response.
The basic search above is probably enough, although the endpoint supports many parameters to customize the search. This is a full search query added for reference: https://query2.finance.yahoo.com/v1/finance/search?q=apple&lang=en-US®ion=US"esCount=6&newsCount=2&listsCount=2&enableFuzzyQuery=false"esQueryId=tss_match_phrase_query&multiQuoteQueryId=multi_quote_single_token_query&newsQueryId=news_cie_vespa&enableCb=true&enableNavLinks=true&enableEnhancedTrivialQuery=true&enableResearchReports=true&researchReportsCount=2
The YF API search endpoint has two functionalities that would be nice to add to yfinance:
The information is easily accessible using the endpoint
https://query2.finance.yahoo.com/v1/finance/search?q=apple
, see thequotes
andnews
keys of the JSON response.The basic search above is probably enough, although the endpoint supports many parameters to customize the search. This is a full search query added for reference:
https://query2.finance.yahoo.com/v1/finance/search?q=apple&lang=en-US®ion=US"esCount=6&newsCount=2&listsCount=2&enableFuzzyQuery=false"esQueryId=tss_match_phrase_query&multiQuoteQueryId=multi_quote_single_token_query&newsQueryId=news_cie_vespa&enableCb=true&enableNavLinks=true&enableEnhancedTrivialQuery=true&enableResearchReports=true&researchReportsCount=2
Thank you in advance!