[Quantproject-developers] QuantProject/b3_Data/DataProviders HistoricalDataStreamer.cs,1.1,1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-11-29 16:08:32
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19405/b3_Data/DataProviders Modified Files: HistoricalDataStreamer.cs Log Message: - added GetCurrentBid - added GetCurrentAsk Index: HistoricalDataStreamer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/HistoricalDataStreamer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoricalDataStreamer.cs 28 Aug 2004 16:55:13 -0000 1.1 --- HistoricalDataStreamer.cs 29 Nov 2004 16:08:21 -0000 1.2 *************** *** 25,28 **** --- 25,29 ---- using QuantProject.ADT; + namespace QuantProject.Data.DataProviders { *************** *** 69,72 **** --- 70,93 ---- /// <summary> + /// Returns the current bid for the given ticker + /// </summary> + /// <param name="ticker"></param> + /// <returns></returns> + public double GetCurrentBid( string ticker ) + { + return HistoricalDataProvider.GetMarketValue( ticker , + this.timer.CurrentDateTime ); + } + /// <summary> + /// Returns the current ask for the given ticker + /// </summary> + /// <param name="ticker"></param> + /// <returns></returns> + public double GetCurrentAsk( string ticker ) + { + return HistoricalDataProvider.GetMarketValue( ticker , + this.timer.CurrentDateTime ); + } + /// <summary> /// Starts the time walking simulation /// </summary> |