Class TransactionChargeFixed

java.lang.Object

public class TransactionChargeFixed
extends TransactionCharge
TransactionChargeFixed contains the Parameters for the Fixed Transaction Charge Scheme.



Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    TransactionChargeFixed​(java.lang.String name, java.lang.String id, java.lang.String description, double fixedCharge)
    TransactionChargeFixed Constructor
  • Method Summary

    Modifier and Type Method Description
    double estimate​(double initialSize, double finalSize)
    Estimate the Transaction Charge for a Single Holdings Change
    double fixedCharge()
    Retrieve the Fixed Transaction Cost Charge

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

    description, hashCode, id, name, Standard, timeStamp

    Methods inherited from class java.lang.Object

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

    • TransactionChargeFixed

      public TransactionChargeFixed​(java.lang.String name, java.lang.String id, java.lang.String description, double fixedCharge) throws java.lang.Exception
      TransactionChargeFixed Constructor
      Parameters:
      name - Transaction Charge Name
      id - Transaction Charge ID
      description - Description of the Transaction Charge
      fixedCharge - Fixed Transaction Charge
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • fixedCharge

      public double fixedCharge()
      Retrieve the Fixed Transaction Cost Charge
      Returns:
      The Fixed Transaction Cost Charge
    • estimate

      public double estimate​(double initialSize, double finalSize) throws java.lang.Exception
      Description copied from class: TransactionCharge
      Estimate the Transaction Charge for a Single Holdings Change
      Specified by:
      estimate in class TransactionCharge
      Parameters:
      initialSize - Initial Size
      finalSize - Final Size
      Returns:
      The Transaction Charge Estimate
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid