finance.stocks
Class Trades
java.lang.Object
finance.stocks.Trades
public class Trades
- extends java.lang.Object
User: lyon
Date: Aug 2, 2007
Time: 7:15:58 AM
Copyright DocJava, Inc. 2005.
Constructor Summary |
Trades(double commission)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Trades
public Trades(double commission)
add
public void add(Trade t)
getRecords
public Trade[] getRecords()
getProfit
public double getProfit()
isOdd
public boolean isOdd()
- Returns:
- true if number of trades is odd.
getNumberOfShares
public int getNumberOfShares()
tender
public void tender(DarBean d)
- tender shares into dutch auction, selling remaining shares, with proration
Do not include commission, as tendering is often free.
- Parameters:
d
- information about the dutch auction