net.commerce.zocalo.history
Class MarketTradeRec

java.lang.Object
  extended by net.commerce.zocalo.history.PriceHistoryRecord
      extended by net.commerce.zocalo.history.TradeRec
          extended by net.commerce.zocalo.history.MarketTradeRec

public class MarketTradeRec
extends TradeRec

MarketTradeRec represents a single step in a trade between a new order and a MarketMaker. It may be combined with BookTradeRecs and MarketTradeRecs into a single TransactionRec.


Field Summary
 
Fields inherited from class net.commerce.zocalo.history.TradeRec
taker
 
Fields inherited from class net.commerce.zocalo.history.PriceHistoryRecord
BEST_ASK, BEST_BID, CLOSE, OPEN, QUANTITY
 
Constructor Summary
MarketTradeRec(SecureUser taker, Position position, double open, double close, double quantity, java.util.Date date)
           
 
Method Summary
 void addTo(org.jfree.data.time.TimePeriodValuesCollection c)
           
 double getQuantity()
           
 
Methods inherited from class net.commerce.zocalo.history.PriceHistoryRecord
getClose, getOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarketTradeRec

public MarketTradeRec(SecureUser taker,
                      Position position,
                      double open,
                      double close,
                      double quantity,
                      java.util.Date date)
Method Detail

getQuantity

public double getQuantity()
Specified by:
getQuantity in class PriceHistoryRecord

addTo

public void addTo(org.jfree.data.time.TimePeriodValuesCollection c)
Specified by:
addTo in class PriceHistoryRecord