![JAR search and dependency download from the Maven repository](/logo.png)
com.opengamma.strata.product.ProductTrade Maven / Gradle / Ivy
Show all versions of strata-product Show documentation
/*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product;
/**
* A trade that is directly based on a product.
*
* A product trade is a {@link Trade} that directly contains a reference to a {@link Product}.
*
* Implementations of this interface must be immutable beans.
*/
public interface ProductTrade
extends Trade {
/**
* Gets the underlying product that was agreed when the trade occurred.
*
* The product captures the contracted financial details of the trade.
*
* @return the product
*/
public abstract Product getProduct();
//-------------------------------------------------------------------------
/**
* Returns an instance with the specified info.
*
* @param info the new info
* @return the instance with the specified info
*/
@Override
public abstract ProductTrade withInfo(PortfolioItemInfo info);
}