Table of Contents

Class ObservationServer

Namespace
Balsam.DataServers
Assembly
Balsam.Backtester.dll

Reads ascii files with an arbitrary number of columns.

public class ObservationServer
Inheritance
ObservationServer
Inherited Members
Extension Methods

Constructors

ObservationServer(string)

Instantiates a new observation server using the specified directory.

public ObservationServer(string directory)

Parameters

directory string

Properties

Delimiter

Gets/sets the delimiter used to separate fields. Default is comma delimited.

public string Delimiter { get; set; }

Property Value

string

Extension

Gets/sets the file extension.

public string Extension { get; set; }

Property Value

string

Methods

Connect()

Connects the observation server.

public void Connect()

GetSymbols()

Returns filenames that match the extension.

public IEnumerable<string> GetSymbols()

Returns

IEnumerable<string>

LoadSymbol(string)

Loads all the data for the specified symbol.

public ObservationSeries LoadSymbol(string symbol)

Parameters

symbol string

Returns

ObservationSeries

LoadSymbol(string, DateTime)

Loads data for the specfied symbol starting at the specified date.

public ObservationSeries LoadSymbol(string symbol, DateTime startDate)

Parameters

symbol string
startDate DateTime

Returns

ObservationSeries

LoadSymbol(string, DateTime, DateTime)

Loads data for the specified symbol between the specified start and end dates.

public ObservationSeries LoadSymbol(string symbol, DateTime startDate, DateTime endDate)

Parameters

symbol string
startDate DateTime
endDate DateTime

Returns

ObservationSeries