C# Class FastQuant.FileDataServer

Inheritance: DataServer
Datei anzeigen Open project: fastquant/fastquant.dll

Public Methods

Method Description
AddDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : DataSeries
AddDataSeries ( string name ) : DataSeries
Close ( ) : void
DeleteDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : void
DeleteDataSeries ( string name ) : void
FileDataServer ( Framework framework, string fileName, string host = null, int port = -1 ) : System.Collections.Generic
Flush ( ) : void
GetDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : DataSeries
GetDataSeries ( string name ) : DataSeries
GetDataSeriesList ( Instrument instrument = null, string pattern = null ) : List
Open ( ) : void
Refresh ( ) : void
Save ( Instrument instrument, DataObject obj, SaveMode option = SaveMode.Add ) : void

Private Methods

Method Description
CreateDataSeries ( string name ) : DataSeries
GetBarDataSeriesInCache ( Instrument instrument, BarType barType, long barSize, bool createNotExist ) : DataSeries

Method Details

AddDataSeries() public method

public AddDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : DataSeries
instrument Instrument
type byte
barType BarType
barSize long
return DataSeries

AddDataSeries() public method

public AddDataSeries ( string name ) : DataSeries
name string
return DataSeries

Close() public method

public Close ( ) : void
return void

DeleteDataSeries() public method

public DeleteDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : void
instrument Instrument
type byte
barType BarType
barSize long
return void

DeleteDataSeries() public method

public DeleteDataSeries ( string name ) : void
name string
return void

FileDataServer() public method

public FileDataServer ( Framework framework, string fileName, string host = null, int port = -1 ) : System.Collections.Generic
framework Framework
fileName string
host string
port int
return System.Collections.Generic

Flush() public method

public Flush ( ) : void
return void

GetDataSeries() public method

public GetDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : DataSeries
instrument Instrument
type byte
barType BarType
barSize long
return DataSeries

GetDataSeries() public method

public GetDataSeries ( string name ) : DataSeries
name string
return DataSeries

GetDataSeriesList() public method

public GetDataSeriesList ( Instrument instrument = null, string pattern = null ) : List
instrument Instrument
pattern string
return List

Open() public method

public Open ( ) : void
return void

Refresh() public method

public Refresh ( ) : void
return void

Save() public method

public Save ( Instrument instrument, DataObject obj, SaveMode option = SaveMode.Add ) : void
instrument Instrument
obj DataObject
option SaveMode
return void