mm: Add live config and balance updates for running bots
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.
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.
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.
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.
@JoeGruffins sorry about that, I fixed it.
Running well. Is there not way to ignore oracles anymore and just go by the midgap?
The placements could be rounded when adding automatically:
Does this close #2600 and #2822 ?
Does this close https://github.com/decred/dcrdex/issues/2600 and https://github.com/decred/dcrdex/issues/2822 ?
2822 probably can be closed. This is unrelated to 2600 though.
Running well. Is there not way to ignore oracles anymore and just go by the midgap?
Not currently. There are some challenges that have to be solved regarding this, because if there is only a single market maker on a market, and the midgap is used, it will cause the orders to thrash around.
Has conflicts.
Conflicts with internal balance changes I think. Srry.