You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right, allocate doesn't work with 0 ratio.
The issue is that the "relative" ratio doesn't work around 0 as any deviation from 0 => infinite error.
In addition to the hack mentioned above, you can also do lak whatif asset -a MyZeroAsset -$current_balance to zero out the asset before running lak analyze allocate (lak analyze allocate --account MyBrokerage --rebalance --exclude_assets MyZeroAsset). Would this be a better solution (hack)?
It can be convenient to set an asset class allocation ratio to 0, for example to exit a position of a certain fund or market segment.
It seems like most
lak
commands handle this just fine, howeverlak analyze allocate --rebalance
does not allow this.I think this should work. The
MyZeroAsset
asset should be rebalanced to 0 and the funds moved to other assets.A hacky work around is to set the ratio to to almost zero e.g.
0.00000000000001
.The text was updated successfully, but these errors were encountered: