8000 Allow users to exhaust all their budget by leonardoarcari · Pull Request #197 · dcapal/dcapal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow users to exhaust all their budget #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

leonardoarcari
Copy link
Collaborator
@leonardoarcari leonardoarcari commented Nov 25, 2023

Pull request details

This PR adds a new option to the advanced allocation algorithm to try to use all budget available, even if it overweighs some assets.

The algorithm is roughly described as follows:

  • Allocate budget as of today
  • If some budget is left and use_all_budget == true:
    • Try to spread budget over under-allocated assets
    • Then, try to spread budget over all assets where we already allocated some cash, weighted by their target allocation
    • Finally, just drop all cash left, prioritizing the asset we allocated most cash over

Example

Test case : dcapal-portfolio-use_all_budget-low.json
Budget : €250

Without use_all_budget

image

With use_all_budget

image

Breaking changes

None

Issues fixed

  1. [Enhancement]: Allow users to exhaust all their budget #155

@leonardoarcari leonardoarcari added this to the v0.6.0 milestone Nov 25, 2023
@leonardoarcari leonardoarcari self-assigned this Nov 25, 2023
@leonardoarcari leonardoarcari linked an issue Nov 25, 2023 that may be closed by this pull request
@leonardoarcari leonardoarcari marked this pull request as draft November 25, 2023 21:38
@leonardoarcari leonardoarcari marked this pull request as ready for review November 27, 2023 13:13
@leonardoarcari leonardoarcari merged commit 14f6806 into master Dec 4, 2023
@leonardoarcari leonardoarcari deleted the 155-enhancement-allow-users-to-exhaust-all-their-budget branch December 4, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Allow users to exhaust all their budget
3 participants
0