YahooTicker
StockSharp.Yahoo.Native
Implementation of Ticker for Yahoo Finance.
Inherits: Ticker
Implements: IDisposable
Methods
GetAsync
public override Task<FyResult> GetAsync(CancellationToken cancellationToken)
result = yahooTicker.GetAsync(cancellationToken)
Async implementation to get a result from the predefined settings.
Returns: An instance of FyResult containing the result.
GetQueryStringParameters
private string GetQueryStringParameters()
result = yahooTicker.GetQueryStringParameters()
Prepare the query string arguments for Yahoo Finance request.
Returns: An url with all containing arguments.
GetResponse
private Task<HttpResponseMessage> GetResponse(string url, CancellationToken cancellationToken)
result = yahooTicker.GetResponse(url, cancellationToken)
Get a http response message from the client instance.
- url
- Url to invoke.
- cancellationToken
Returns: An instance of HttpResponseMessage.