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
Extension
Gets/sets the file extension.
public string Extension { get; set; }
Property Value
Methods
Connect()
Connects the observation server.
public void Connect()
GetSymbols()
Returns filenames that match the extension.
public IEnumerable<string> GetSymbols()
Returns
LoadSymbol(string)
Loads all the data for the specified symbol.
public ObservationSeries LoadSymbol(string symbol)
Parameters
symbol
string
Returns
LoadSymbol(string, DateTime)
Loads data for the specfied symbol starting at the specified date.
public ObservationSeries LoadSymbol(string symbol, DateTime startDate)
Parameters
Returns
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)