Object-Oriented Programming · Akuna Capital · Medium
Requirements Build a lightweight portfolio rebalancing component for asset management. It receives a portfolio's existing percentage mix and a desired percentage mix, then determines the buy or sell percentage required for every asset to reach the desired allocation. The following types and methods must be provided: rebalancePortfolio must produce a map containing the identical asset keys. For each asset, its value represents the percentage to purchase when positive or…
Checking your access…