[Quantproject-developers] QuantProject/b3_Data/DataProviders/Bars HistoricalBarProvider.cs, NONE, 1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-11-08 20:24:14
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/Bars In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18899 Added Files: HistoricalBarProvider.cs Log Message: Returns historical bars, playing with caching --- NEW FILE: HistoricalBarProvider.cs --- /* QuantProject - Quantitative Finance Library HistoricalBarProvider.cs Copyright (C) 2008 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using QuantProject.Data.DataProviders.Bars.Caching; namespace QuantProject.Data.DataProviders.Bars { /// <summary> /// Returns historical bars, playing with caching /// </summary> public class HistoricalBarProvider { IBarCache barCache; public HistoricalBarProvider( IBarCache barCache ) { this.barCache = barCache; } public double GetMarketValue( string ticker , DateTime dateTime ) { double marketValue = barCache.GetMarketValue( ticker , dateTime ); return marketValue; } } } |