Show / Hide Table of Contents

Class DataUpdater

Abstract base class for data updater. Data updaters are instantiated as required by the data source, and there is no need for application developers to interact with them directly.

Inheritance
object
DataUpdater
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public abstract class DataUpdater

Constructors

| Improve this Doc View Source

DataUpdater(SimulatorCore, Dictionary<DataSourceParam, string>)

Create and initialize generic data updater object.

Declaration
protected DataUpdater(SimulatorCore simulator, Dictionary<DataSourceParam, string> info)
Parameters
Type Name Description
SimulatorCore simulator

parent simulator

System.Collections.Generic.Dictionary<TKey, TValue><DataSourceParam, string> info

info dictionary

Fields

| Improve this Doc View Source

Info

Info dictionary, holding data source description.

Declaration
public readonly Dictionary<DataSourceParam, string> Info
Field Value
Type Description
System.Collections.Generic.Dictionary<TKey, TValue><DataSourceParam, string>
| Improve this Doc View Source

Simulator

Parent simulator object.

Declaration
public readonly SimulatorCore Simulator
Field Value
Type Description
SimulatorCore

Properties

| Improve this Doc View Source

Name

Name of data updater.

Declaration
public abstract string Name { get; }
Property Value
Type Description
string

Methods

| Improve this Doc View Source

New(SimulatorCore, Dictionary<DataSourceParam, string>)

Factory method to create new data updater object, based on info dictionary.

Declaration
public static DataUpdater New(SimulatorCore simulator, Dictionary<DataSourceParam, string> info)
Parameters
Type Name Description
SimulatorCore simulator

parent simulator

System.Collections.Generic.Dictionary<TKey, TValue><DataSourceParam, string> info

info dictionary

Returns
Type Description
DataUpdater

new data updater object

| Improve this Doc View Source

UpdateData(DateTime, DateTime)

Run data update.

Declaration
public abstract IEnumerable<Bar> UpdateData(DateTime startTime, DateTime endTime)
Parameters
Type Name Description
System.DateTime startTime

start of update range

System.DateTime endTime

end of update range

Returns
Type Description
System.Collections.Generic.IEnumerable<T><Bar>

enumerable with updated bars

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com