Ticker

StockSharp.Yahoo.Native

An object of this class must represent a ticker (symbol) for a security. This is an abstract fluent implementation to define how to get data from the stock market. By default an instance of Ticker will use Period of one month, interval of days and TimeZoneInfo.Local.

Implementa: IDisposable

Propiedades

Dividends : bool

It contain the dividends events.

FinishDate : DateTime?

FinishDate of data.

Interval : Interval

Interval of data. The default value is Interval.OneDay.

Period : Period

Period of data. The default value is Period.OneMonth.

Result : FyResult

It represents the last valid result after the Get/GetAsync method is invoked.

Splits : bool

It contain the split events.

StartDate : DateTime?

StartDate of data.

Symbol : string

Security symbol.

TimeZone : TimeZoneInfo

TimeZone to convert the dateTime received data. if there is no definition, it does not change the value.

Métodos

Build() : Ticker

Build an instance of the Ticker. Currently this package just support YahooTicker implementation.

Devuelve: An instance of the Ticker.

Build(string) : Ticker

Build an instance of the Ticker for a given symbol. Currently this package just support YahooTicker implementation.

symbol
Symbol

Devuelve: An instance of the Ticker.

BuildYahoo(string) : Ticker

Build an instance of the YahooTicker for a given symbol.

symbol

Devuelve: An instance of the Ticker.

Dispose()

Disposes of items in the pool that implement IDisposable.

GetAsync(CancellationToken) : Task<FyResult>

Async implementation to get a result from the predefined settings.

Devuelve: An instance of FyResult containing the result.

SetDividends(bool) : Ticker

Set if the response should hold dividends.

dividends
Dividends flag.

Devuelve: The instance itself.

SetEvents(bool) : Ticker

Set if the response should hold events (Dividends and Splits).

events
Events flags

Devuelve: The instance itself.

SetFinishDate(DateTime) : Ticker

Set the finish date.

finishDate
Finish date.

Devuelve: The instance itself.

SetInterval(Interval) : Ticker

Set the interval of the data.

interval
Interval.

Devuelve: The instance itself.

SetInterval(DateTime, DateTime) : Ticker

Set interval between two dates.

startDate
Start date.
finishDate
Finish date.

Devuelve: The instance itself.

SetLocalTimeZone() : Ticker

Set the local timezone.

Devuelve: The instance itself.

SetPeriod(Period) : Ticker

Set a Period to get data.

period
Period.

Devuelve: The instance itself.

SetSplits(bool) : Ticker

Set if the response should hold splits.

splits
Splits flag.

Devuelve: The instance itself.

SetStartDate(DateTime) : Ticker

Set the start date.

startDate
Start date.

Devuelve: The instance itself.

SetSymbol(string) : Ticker

Set a symbol (ticker) of a security.

ticker
Symbol.

Devuelve: The instance itself.

SetTimeZone(TimeZoneInfo) : Ticker

Set a timezone to convert the date/time output.

timeZone
Timezone

Devuelve: The instance itself.