decred / dcrdex

The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
Other
188 stars 100 forks source link

mm: allow configuring 1-sided bot #3101

Open norwnd opened 4 days ago

norwnd commented 4 days ago

Sometimes one only wants to only buy (or only sell) - hence it would be useful to have a flag in UI (in bot configuration) that disables 1 side. Should be simple change to add.

Update: to be fair, I figured out how to do it through "configuring placements manually (and specify only 1 side there)" - but intuitive/simpler way to do it would be to have a boolean "Disable Side" toggle on each of the side-cfg-cards (that when pressed would grey-out the whole card)

norwnd commented 1 day ago

but intuitive/simpler way to do it would be to have a boolean "Disable Side" toggle on each of the side-cfg-cards (that when pressed would grey-out the whole card)

Seems like there already is a button to "Allocate" if it hasn't been:

image

that button ^ would probably be an equivalent to / or inter-operate with a "Enable Side" toggle (which is what "Disable Side" toggle would turn into when side-card is disabled, and when pressed it would simply reverse that grey-out action applied previously) on a side-cfg-card - because we need to enable buy/sell side back on before we can allowing user to configure placements for it (it wouldn't be intuitive to allow user to configure placements for disable side, I think, so just enable it for him automatically if he wants to configure placements).