/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.core.position;

import com.opengamma.id.Identifier;
import com.opengamma.util.PublicAPI;

/**
 * The entity against which a trade was executed.
 * <p>
 * Trades have a counterparty to link the other side of the deal.
 * This entity might be an exchange where the final counterparty is unknown.
 */
@PublicAPI
public interface Counterparty {

  /**
   * Gets the identifier of the counterparty.
   * 
   * @return the identifier, not null
   */
  Identifier getIdentifier();

}

/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.core.position;

import com.opengamma.id.Identifier;
import com.opengamma.util.PublicSPI;

/**
 * The entity against which a trade was executed.
 * <p>
 * Trades have a counterparty to link the other side of the deal.
 * This entity might be an exchange where the final counterparty is unknown.
 */
@PublicSPI
public interface Counterparty {

  /**
   * Gets the identifier of the counterparty.
   * 
   * @return the identifier, not null
   */
  Identifier getIdentifier();

}

Change PublicAPI to PublicSPI