Skip to content

KOTH "buy or sell cycle" mode idea #673

@NemesisZAUK

Description

@NemesisZAUK

Expected Behavior

When starting KOTH strategy bot should either Sell or Buy depending on which of the traded pair has the largest balance. ( Balance must also not = 0 )

Actual Behavior

When starting KOTH strategy Bot attempts to buy and sell at the same time. If one of the traded pair has a 0 balance an error is displayed. "Cannot place order with 0 balance." Then bot is disabled.

##Solution:
Bot should check for the following before trading:

  1. Spread >0
  2. If one of the traded pairs >0 then start with the positive balance either buying or selling.
  3. Bot should operate on a cycle as mentioned below.

Do NOT trade both pairs at the same time. Bot should either buy or sell not both.

For eg:

BTC / BTS Pair: BTS Largest Balance.

  1. Bot starts a cycle,
  2. Checks if spread is >0
  3. Checks for balances on traded pair. Largest balance wins for starting trade.
  4. Bot Sells BTS for BTC
  5. Checks if spread is >0
  6. Bot then Sells BTC for BTS if conditions of spread are met.
  7. Cycle repeats.

Note:
At this time, if you set the KOTH strategy to sell only 90% of BTS in the above example, the bot makes an initial trade then tries to make another with the remaining 10% of BTS, causing you to run out of funds to pay the fees. ( if fees BTS ) This could be remedied by preventing the bot from buying and selling at the same time within a single cycle.

The BUY OR SELL cycle strategy above is a desirable feature for future iterations of DEXBot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions