-
Notifications
You must be signed in to change notification settings - Fork 108
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
mm: Add live config and balance updates for running bots #3081
base: master
Are you sure you want to change the base?
Conversation
Just tested. This is a much more intuitive sequence. I did struggle the first time I set up bots with the older sequencing .. so this new UI/UX has better chance for a new end user. |
b85d3bb
to
5c38a75
Compare
Let's progress this out of draft. This is looking good. I'll have lots of followup, but no reason to hold this up any longer. |
5c38a75
to
169a72d
Compare
This change introduces live balance and configuration updates for active bots, along with UI improvements. Starting bots and bot balance allocation now occurs on the 'mmsettings' page (instead of the main 'mm' page). Two allocation options are now available: - Quick config: Set buffers based on the number of lots to match on the same side before funds run low. Also possible to set a slippage buffer for the quote asset and fee reserves for EVM assets. - Manual config: Specify exact asset amounts to allocate to the bot.
169a72d
to
fcf000b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying on simnet, unable to start with:
POST | http://127.0.0.3:5758/api/startmarketmakingbot
Status
400
Bad Request
client log:
2025-03-21 06:58:58.566 [DBG] WEB: failed to unmarshal JSON request: json: cannot unmarshal number 13381842.214293646 into Go struct field BotBalanceAllocation.config.alloc.dex of type uint64
2025-03-21 06:58:58.566 [DBG] WEB: raw request: {"config":{"baseID":60,"quoteID":0,"host":"127.0.0.1:17273","alloc":{"dex":{"0":13381842.214293646,"60":4141531800},"cex":{"0":0,"60":0}}}}
2025-03-21 06:58:58.566 [ERR] WEB: failed to read form
Also the console is logging this over and over at some point:
Object { dex: {…}, cex: {…} }
This change introduces live balance and configuration updates
for active bots, along with UI improvements. Starting bots and bot
balance allocation now occurs on the 'mmsettings' page (instead of
the main 'mm' page). Two allocation options are now available:
the same side before funds run low. Also possible to set a slippage
buffer for the quote asset and fee reserves for EVM assets.
The simple arb bot UI now only has one bot parameter, "Profit Threshold". The number of lots is now set in the "Asset Allocation" section.