-
Notifications
You must be signed in to change notification settings - Fork 128
Description
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:
- Spread >0
- If one of the traded pairs >0 then start with the positive balance either buying or selling.
- 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.
- Bot starts a cycle,
- Checks if spread is >0
- Checks for balances on traded pair. Largest balance wins for starting trade.
- Bot Sells BTS for BTC
- Checks if spread is >0
- Bot then Sells BTC for BTS if conditions of spread are met.
- 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.