Skip to content

SO: keep virtual orders state across restart #442

@bitphage

Description

@bitphage

Currently virtual orders are being reconstructed from scratch on each restart. This creates the following issues:

  • If working mode changed & dexbot restarted, virtual orders will be restored according to a new mode. When switching from valley mode to mountain or neutral, this will create available funds which will be reallocated into closer-to-center orders.
  • If orders size increase round is in progress, increase smoothness will be distorted

Solution: save virtual orders into state, and restore them on startup. Determine how to better store virtual orders. As a state, dexbot sqlite db may be used, or json serialized dump file, or something other. Determine what is best.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions