Class AssetPosition

java.lang.Object

public class AssetPosition
extends Asset
Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    AssetPosition​(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector, double quantity, double unitPrice)
    Asset Constructor
  • Method Summary

    Modifier and Type Method Description
    double marketValue()
    Retrieve the Market Value of the Position
    double quantity()
    Retrieve the Asset Quantity
    double unitPrice()
    Retrieve the Asset Unit Price

    Methods inherited from class org.drip.portfolioconstruction.core.Asset

    currency, hashCode, sector

    Methods inherited from class org.drip.portfolioconstruction.core.Block

    category, description, id, name, Standard, timeStamp

    Methods inherited from class java.lang.Object

    equals, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetPosition

      public AssetPosition​(java.lang.String name, java.lang.String id, java.lang.String description, java.lang.String currency, java.lang.String sector, double quantity, double unitPrice) throws java.lang.Exception
      Asset Constructor
      Parameters:
      name - The Asset Name
      id - The Asset ID
      description - The Asset Description
      currency - The Asset Currency
      sector - The Asset Sector
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • quantity

      public double quantity()
      Retrieve the Asset Quantity
      Returns:
      Asset Quantity
    • unitPrice

      public double unitPrice()
      Retrieve the Asset Unit Price
      Returns:
      Asset Unit Price
    • marketValue

      public double marketValue()
      Retrieve the Market Value of the Position
      Returns:
      Market Value of the Position