//-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         DummyFraTrade other = (DummyFraTrade)obj;
         return(JodaBeanUtils.equal(date, other.date) && JodaBeanUtils.equal(fixedRate, other.fixedRate));
     }
     return(false);
 }
        public DummyFraTrade trade(double quantity, MarketData marketData, ReferenceData refData)
        {
            double fixedRate = marketData.getValue(rateId) + spread;

            return(DummyFraTrade.of(marketData.ValuationDate, fixedRate));
        }