Main Content
getCosts
Obtain buy and sell transaction costs from portfolio object
Description
Use the getCosts
function with a
Portfolio
, PortfolioCVaR
, or
PortfolioMAD
object to obtain buy and sell transaction costs from
portfolio objects.
For details on the respective workflows when using these different objects, see Portfolio Object Workflow, PortfolioCVaR Object Workflow, and PortfolioMAD Object Workflow.
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;
Version History
Introduced in R2011a
See Also
Topics
- Working with Transaction Costs
- Working with Transaction Costs
- Working with Transaction Costs
- Portfolio Optimization Examples Using Financial Toolbox
- Supported Constraints for Portfolio Optimization Using Portfolio Objects
- Supported Constraints for Portfolio Optimization Using PortfolioCVaR Object
- Supported Constraints for Portfolio Optimization Using PortfolioMAD Object