Skip to content
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

Index Strategy sells everything and then buys, instead of using diff #2791

Open
IlanCosman opened this issue Nov 8, 2024 · 1 comment
Open

Comments

@IlanCosman
Copy link

When the index strategy rebalances, it seems to do so by selling off all the assets, and then repurchasing in the proper quantities. This is very inefficient and introduces a lot of extra trading costs. It would be much better if the strategy simply purchased / sold the diff between the target and current portfolio.

@GuillaumeDSM
Copy link
Member

Hellon @IlanCosman,

There are 2 ways the Index Strategy updates its portfolio.

  1. If it can just swap currencies, then it will just sell one and use the funds to buy the other.
  2. However, if the transaction is more complicated (like changing multiple coins or changing ratios), then spliting funds accross assets of the index becomes much more complicated because of the exchanges' minimal order sizes. For example, if you have 50 USDT to spread between more than 10 assets, then you can't do it on Binance because the minimal order size is 5USDT. This would end up in the index not being followed at all in those cases, and funds "stuck" in USDT.

One way to improve this would be to improve the algorithm to check if spreading funds works regarding minimal order size rules of the current exchange and do it when possible.

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

No branches or pull requests

2 participants