Skip to content

mm: Handle market params update#2846

Merged
buck54321 merged 3 commits intodecred:masterfrom
martonp:mktParamsUpdate
Mar 26, 2025
Merged

mm: Handle market params update#2846
buck54321 merged 3 commits intodecred:masterfrom
martonp:mktParamsUpdate

Conversation

@martonp
Copy link
Copy Markdown
Collaborator

@martonp martonp commented Jun 26, 2024

This diff updates the market maker to listen for updates to the server config. If the lot size of a market that a bot is currently trading on is updated, the number of placements that the bot makes is updated so that the bot places as many lots as possible without exceeding the amount that was placed before the lot size update.

Additionally, the lot size is now saved with the BotConfig. An additional overrideLotSizeChange parameter is added to StartBot, which if false, will return an error if the lot size has changed since the bot was configured. This will allow the UI to prompt the user to either update their configuration, or continue with the old one even though the lot size has changed.

Comment thread client/mm/mm_arb_market_maker.go
Comment thread client/mm/mm_basic.go
@martonp martonp force-pushed the mktParamsUpdate branch 2 times, most recently from 0863701 to 3e8478c Compare November 9, 2024 11:05
Comment thread client/mm/mm_arb_market_maker.go
Copy link
Copy Markdown
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one suggestion and a rebase.

Comment thread client/mm/mm_basic.go Outdated
martonp added 3 commits March 25, 2025 06:09
This diff updates the market maker to listen for updates to the server
config. If the lot size of a market that a bot is currently trading on
is updated, the number of placements that the bot makes is updated so
that the bot places as many lots as possible without exceeding the amount
that was placed before the lot size update.
@buck54321 buck54321 merged commit f131a36 into decred:master Mar 26, 2025
5 checks passed
martonp added a commit to martonp/dcrdex that referenced this pull request May 7, 2025
* mm: Handle market params update

This diff updates the market maker to listen for updates to the server
config. If the lot size of a market that a bot is currently trading on
is updated, the number of placements that the bot makes is updated so
that the bot places as many lots as possible without exceeding the amount
that was placed before the lot size update.

* Review updates

* Reivew updates
martonp added a commit to martonp/dcrdex that referenced this pull request Jul 8, 2025
* mm: Handle market params update

This diff updates the market maker to listen for updates to the server
config. If the lot size of a market that a bot is currently trading on
is updated, the number of placements that the bot makes is updated so
that the bot places as many lots as possible without exceeding the amount
that was placed before the lot size update.

* Review updates

* Reivew updates
buck54321 pushed a commit that referenced this pull request Jul 26, 2025
* mm: Handle market params update

This diff updates the market maker to listen for updates to the server
config. If the lot size of a market that a bot is currently trading on
is updated, the number of placements that the bot makes is updated so
that the bot places as many lots as possible without exceeding the amount
that was placed before the lot size update.

* Review updates

* Reivew updates
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.

3 participants