Skip to content

YahooFinanceChartDataSource

ClassChartGuruChartGuru
public sealed class YahooFinanceChartDataSource : WebChartDataSource, IChartGuruElementDataSource, IChartDataSource

Convenience data source that pulls OHLCV candles from the public Yahoo Finance chart endpoint (https://query1.finance.yahoo.com/v8/finance/chart/{symbol}), pivots the columnar response into a tabular dataset with Date / Open / High / Low / Close / Volume columns and feeds it through the standard ChartGuru mapping pipeline.

The mapping is auto-configured for candlestick charts on first use — users only need to assign `ChartGuru.YahooFinanceChartDataSource.Symbol`, `ChartGuru.YahooFinanceChartDataSource.Range`, and `ChartGuru.YahooFinanceChartDataSource.Interval`.

Yahoo's endpoint is rate-limited and unofficial; do not poll faster than once per minute in production. For live trading dashboards, use a paid market-data provider via [ChartGuru.WebChartDataSource](/tools/chartguru/api/chartguru-webchartdatasource/).

protected override ChartTabularData ParseResponse(string rawText, string contentType)

Parses one immutable HTTP response and its matching content type.

Parameters

Name Type
rawText System.String
contentType System.String

Returns

ChartGuru.ChartTabularData

protected override void PrepareParsedForApply(ChartTabularData table)

Applies source-specific mapping changes on the Unity thread before data is promoted.

Parameters

Name Type
table ChartGuru.ChartTabularData

public YahooFinanceChartDataSource()

public string Symbol { get; set; }

Returns

System.String

public YahooFinanceRange Range { get; set; }

Returns

ChartGuru.YahooFinanceRange

public YahooFinanceInterval Interval { get; set; }

Returns

ChartGuru.YahooFinanceInterval