Skip to content

Multiple workers on same accounts with assets intersections #434

@bitphage

Description

@bitphage

User can create multiple workers one the same account for example for BTC:LTC and USD:BTS pairs. That's fine.

Another situation may be BTC:LTC and BTC:ETH markets. There is BTC asset intersection. Dexbot doesn't handle well such situations now. Solutions:

  • (staggered) refuse to create such workers and complain
  • (relative) refuse and complain
  • Make Relative orders probably tolerate this assets intersections. Should not be a big deal
  • Theoretically it's possible to support multiple staggered workers on same account with assets intersection. Dexbot will need to treat intersected asset balance as "common" and divide it across workers evenly or according to specified % (config option). The thing which requires attention here is how to handle adding more workers. Rebalance intersected asset across workers or just assume user should add more funds to supply new worker.

As that feature is specific, probably we need to poll the community to understand the demand for it. That feature may be really wanted as crypto-bridge introduces market-making program which designed to work with single account.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions