[Quantproject-developers] QuantProject/b3_Data/DataProviders HistoricalDataProvider.cs,1.6,1.7
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-01-20 01:21:33
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4264/b3_Data/DataProviders Modified Files: HistoricalDataProvider.cs Log Message: Minor code cleaning Index: HistoricalDataProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/HistoricalDataProvider.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** HistoricalDataProvider.cs 9 Jan 2005 22:36:19 -0000 1.6 --- HistoricalDataProvider.cs 20 Jan 2005 01:21:21 -0000 1.7 *************** *** 85,94 **** // } // - public static History GetOpenHistory( string instrumentKey ) - { - return (History)((Hashtable)cachedHistories[ instrumentKey ])[ - BarComponent.Open ]; - } - private static History getHistory( string instrumentKey , QuoteField quoteField ) { --- 85,88 ---- *************** *** 103,106 **** --- 97,105 ---- } + public static History GetOpenHistory( string instrumentKey ) + { + return getHistory( instrumentKey , QuoteField.Open ); + } + public static History GetCloseHistory( string instrumentKey ) { *************** *** 118,121 **** --- 117,125 ---- } + public static History GetAdjustedCloseHistory( string instrumentKey ) + { + return getHistory( instrumentKey , QuoteField.AdjustedClose ); + } + private static void cache( string instrumentKey , QuoteField quoteField ) { |