getCosts
Obtain buy and sell transaction costs from portfolio object
Description
Use thegetCosts
function with aPortfolio
,PortfolioCVaR
, orPortfolioMAD
object to obtain buy and sell transaction costs from portfolio objects.
For details on the respective workflows when using these different objects, seePortfolio Object Workflow,PortfolioCVaR Object Workflow, andPortfolioMAD对象的工作流.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to obtain the buy and sell transaction costs from portfolio objects.
[BuyCost, SellCost] = obj.getCosts;