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

[WIP] mm: Live config / balance updates #3081

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Nov 16, 2024

This diff adds the ability to update the config and balances of running bots. It also changes the UI of how balances are allocated to bots when starting them. This is still a WIP and there are many things to be improved, I'm just opening this for some feedback before I complete it.

  • All of the balance related options are moved out of mmsettings.
  • There is a new allocation form, which opens as a popup when allocating the funds, and also can be opened while the bot is running to add / remove funds.
  • The order reserves are no longer allocated as a multiple of the total amount of the asset required, but instead as the amount of lots that the user wants to be able to have matched without running low or requiring a rebalance.
  • There is also an option to manually specify exactly how to allocate for each asset.
  • The auto rebalance options are also moved to the allocation form. The min transfer amount depends on the amount of funds that are allocated to the bot, so this makes sense. Also, CEXes may disable withdrawals and change the minimum withdrawal amount at any time, so this information should be available when the user starts the bot.
Screenshot 2024-11-16 at 2 47 30 PM Screenshot 2024-11-16 at 2 47 35 PM Screenshot 2024-11-16 at 2 48 08 PM

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.

1 participant