Class YahooFinanceService
Inheritance
System.Object
YahooFinanceService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class YahooFinanceService : IStockService, ISearchable<SymbolBase>
Methods
GetQuoteAsync(String)
Gets quote data for a given symbol from the Yahoo Finance API.
Declaration
public Task<YahooQuote> GetQuoteAsync(string symbol)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbol | The symbol to query for. |
Returns
Type | Description |
---|---|
Task<YahooQuote> | Stock quote data. |
See Also
SearchSymbolsAsync(String)
Searches the Yahoo SymbolSuggest API for symbols matching a company name.
Declaration
public Task<IEnumerable<YahooResult>> SearchSymbolsAsync(string companyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | companyName | The company name to search with. |
Returns
Type | Description |
---|---|
Task<IEnumerable<YahooResult>> | A collection of relevant symbols. |