Lean
$LEAN_TAG$
|
Base Data Class: Type, Timestamp, Key – Base Features. More...
Public Member Functions | |
BaseData | Reader (SubscriptionDataConfig config, string line, DateTime date, DataFeedEndpoint dataFeed) |
Reader Method :: using set of arguements we specify read out type. Enumerate until the end of the data stream or file. E.g. Read CSV file line by line and convert into data types. More... | |
BaseData | Reader (SubscriptionDataConfig config, string line, DateTime date, bool isLiveMode) |
Reader converts each line of the data source into BaseData objects. Each data type creates its own factory method, and returns a new instance of the object each time it is called. The returned object is assumed to be time stamped in the config.ExchangeTimeZone. More... | |
BaseData | Reader (SubscriptionDataConfig config, StreamReader stream, DateTime date, bool isLiveMode) |
Reader converts each line of the data source into BaseData objects. Each data type creates its own factory method, and returns a new instance of the object each time it is called. The returned object is assumed to be time stamped in the config.ExchangeTimeZone. More... | |
string | GetSource (SubscriptionDataConfig config, DateTime date, DataFeedEndpoint datafeed) |
Return the URL string source of the file. This will be converted to a stream More... | |
bool | RequiresMapping () |
Indicates if there is support for mapping More... | |
BaseData | Clone () |
Return a new instance clone of this object More... | |
Properties | |
MarketDataType | DataType [get, set] |
Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC. More... | |
DateTime | Time [get, set] |
Time keeper of data – all data is timeseries based. More... | |
DateTime | EndTime [get, set] |
End time of data More... | |
decimal | Value [get, set] |
All timeseries data is a time-value pair: More... | |
decimal | Price [get] |
Alias of Value. More... | |
Properties inherited from QuantConnect.Data.ISymbolProvider | |
Symbol | Symbol [get, set] |
Gets the Symbol More... | |
Base Data Class: Type, Timestamp, Key – Base Features.
Definition at line 24 of file IBaseData.cs.
BaseData QuantConnect.Data.IBaseData.Reader | ( | SubscriptionDataConfig | config, |
string | line, | ||
DateTime | date, | ||
DataFeedEndpoint | dataFeed | ||
) |
Reader Method :: using set of arguements we specify read out type. Enumerate until the end of the data stream or file. E.g. Read CSV file line by line and convert into data types.
Implemented in QuantConnect.Data.BaseData.
BaseData QuantConnect.Data.IBaseData.Reader | ( | SubscriptionDataConfig | config, |
string | line, | ||
DateTime | date, | ||
bool | isLiveMode | ||
) |
Reader converts each line of the data source into BaseData objects. Each data type creates its own factory method, and returns a new instance of the object each time it is called. The returned object is assumed to be time stamped in the config.ExchangeTimeZone.
config | Subscription data config setup object |
line | Line of the source document |
date | Date of the requested data |
isLiveMode | true if we're in live mode, false for backtesting mode |
Implemented in QuantConnect.Data.Market.Tick, QuantConnect.Data.Market.QuoteBar, QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Custom.Tiingo.TiingoPrice, QuantConnect.Indicators.IndicatorDataPoint, QuantConnect.Data.Custom.Intrinio.IntrinioEconomicData, QuantConnect.Data.BaseData, QuantConnect.Data.Custom.FxcmVolume, QuantConnect.Python.PythonData, QuantConnect.Data.Market.OpenInterest, QuantConnect.Data.Market.Dividend, QuantConnect.Data.UniverseSelection.CoarseFundamental, QuantConnect.Data.UniverseSelection.ETFConstituentUniverse, QuantConnect.Data.Market.Split, QuantConnect.Data.Custom.IconicTypes.IndexedLinkedData2, QuantConnect.Data.Custom.IconicTypes.IndexedLinkedData, QuantConnect.Data.Market.Delisting, QuantConnect.Data.UniverseSelection.ConstituentsUniverseData, QuantConnect.Data.Auxiliary.ZipEntryName, QuantConnect.Data.Custom.IconicTypes.UnlinkedDataTradeBar, QuantConnect.Data.Custom.IconicTypes.UnlinkedData, QuantConnect.Data.Fundamental.FundamentalUniverse, QuantConnect.Data.Market.BaseRenkoBar, and QuantConnect.Data.Custom.IconicTypes.LinkedData.
BaseData QuantConnect.Data.IBaseData.Reader | ( | SubscriptionDataConfig | config, |
StreamReader | stream, | ||
DateTime | date, | ||
bool | isLiveMode | ||
) |
Reader converts each line of the data source into BaseData objects. Each data type creates its own factory method, and returns a new instance of the object each time it is called. The returned object is assumed to be time stamped in the config.ExchangeTimeZone.
config | Subscription data config setup object |
stream | The data stream |
date | Date of the requested data |
isLiveMode | true if we're in live mode, false for backtesting mode |
Implemented in QuantConnect.Data.Market.Tick, QuantConnect.Data.Market.QuoteBar, QuantConnect.Data.Market.TradeBar, QuantConnect.Data.UniverseSelection.OptionUniverse, QuantConnect.Data.BaseData, and QuantConnect.Data.Market.MarginInterestRate.
string QuantConnect.Data.IBaseData.GetSource | ( | SubscriptionDataConfig | config, |
DateTime | date, | ||
DataFeedEndpoint | datafeed | ||
) |
Return the URL string source of the file. This will be converted to a stream
datafeed | Type of datafeed we're reqesting - backtest or live |
config | Configuration object |
date | Date of this source file |
Implemented in QuantConnect.Data.BaseData.
bool QuantConnect.Data.IBaseData.RequiresMapping | ( | ) |
Indicates if there is support for mapping
Implemented in QuantConnect.Data.BaseData, QuantConnect.Data.Custom.Tiingo.TiingoPrice, QuantConnect.Data.UniverseSelection.ETFConstituentUniverse, QuantConnect.Python.PythonData, QuantConnect.Data.Custom.IconicTypes.IndexedLinkedData2, QuantConnect.Data.UniverseSelection.ConstituentsUniverseData, QuantConnect.Data.Custom.IconicTypes.IndexedLinkedData, QuantConnect.Data.Custom.IconicTypes.UnlinkedDataTradeBar, QuantConnect.Data.Custom.IconicTypes.UnlinkedData, and QuantConnect.Data.Custom.IconicTypes.LinkedData.
BaseData QuantConnect.Data.IBaseData.Clone | ( | ) |
Return a new instance clone of this object
Implemented in QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Market.Tick, QuantConnect.Data.Market.QuoteBar, QuantConnect.Data.BaseData, QuantConnect.Data.Market.OptionChain, QuantConnect.Data.UniverseSelection.OptionUniverse, QuantConnect.Data.Market.FuturesChain, QuantConnect.Data.UniverseSelection.BaseDataCollection, QuantConnect.Data.DynamicData, QuantConnect.Data.Market.RenkoBar, QuantConnect.Data.Market.OpenInterest, QuantConnect.Data.UniverseSelection.ETFConstituentUniverse, QuantConnect.Data.Market.Dividend, QuantConnect.Data.Market.Split, QuantConnect.Data.Market.RangeBar, QuantConnect.Data.Market.Delisting, QuantConnect.Data.Fundamental.FundamentalUniverse, and QuantConnect.Data.Market.SymbolChangedEvent.
|
getset |
Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
Definition at line 30 of file IBaseData.cs.
|
getset |
Time keeper of data – all data is timeseries based.
Definition at line 39 of file IBaseData.cs.
|
getset |
End time of data
Definition at line 48 of file IBaseData.cs.
|
getset |
All timeseries data is a time-value pair:
Definition at line 58 of file IBaseData.cs.
|
get |
Alias of Value.
Definition at line 68 of file IBaseData.cs.