[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a1_Instruments Instrument.cs,1.4,1.5
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-01-09 23:25:37
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11146/b4_Business/a1_Financial/a1_Instruments Modified Files: Instrument.cs Log Message: - GetMarketValue has been removed - GetMaxBuyableQuantity uses an IDataStreamer now Index: Instrument.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments/Instrument.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Instrument.cs 29 Nov 2004 16:10:24 -0000 1.4 --- Instrument.cs 9 Jan 2005 23:25:26 -0000 1.5 *************** *** 43,56 **** } ! public double GetMarketValue( EndOfDayDateTime endOfDayDateTime ) ! { ! return HistoricalDataProvider.GetMarketValue( this.Key , endOfDayDateTime.DateTime , ! endOfDayDateTime.GetNearestBarComponent() ); ! } ! public long GetMaxBuyableQuantity( double availableAmount , ! EndOfDayDateTime endOfDayDateTime ) { ! return (long) Math.Floor( availableAmount / this.GetMarketValue( endOfDayDateTime ) ); } --- 43,56 ---- } ! // public double GetMarketValue( EndOfDayDateTime endOfDayDateTime ) ! // { ! // return HistoricalDataProvider.GetMarketValue( this.Key , endOfDayDateTime.DateTime , ! // endOfDayDateTime.GetNearestBarComponent() ); ! // } ! // public long GetMaxBuyableQuantity( double availableAmount , ! IDataStreamer dataStreamer ) { ! return (long) Math.Floor( availableAmount / dataStreamer.GetCurrentBid( this.Key ) ); } |