Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KOTH with one asset #670

Closed
froooze opened this issue Aug 26, 2019 · 1 comment
Closed

KOTH with one asset #670

froooze opened this issue Aug 26, 2019 · 1 comment
Assignees

Comments

@froooze
Copy link

froooze commented Aug 26, 2019

Expected Behavior

No error

Actual Behavior

Error because bot has only one asset:

2019-08-26 15:11:50,352 INFO Context impl SQLiteImpl.
2019-08-26 15:11:50,353 INFO Will assume non-transactional DDL.
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=51 time=1.28 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.281/1.281/1.281/0.000 ms
dexbot - INFO - Dexbot version 0.15.5, logfile: /home/ubuntu/.local/share/dexbot/dexbot.log
bot using account bot on BTS/CNY - INFO - Initializing King of the Hill...
bot using account bot on BTS/CNY - INFO - Canceling all orders
bot using account bot on BTS/CNY - INFO - Orders canceled
bot using account bot on BTS/CNY - INFO - King of the Hill initialized.
bot using account bot on BTS/CNY - ERROR - Cannot place buy order with 0 amount. Adjust your settings!
bot using account bot on BTS/CNY - INFO - Placing a sell order with 0.97947 BTS @ 0.28586889
bot using account bot on BTS/CNY - ERROR - Worker "bot" is disabled

Steps to Reproduce the Problem

                │ buy_order_amount: 1.0                                      
                │ buy_order_size_threshold: 1.0                              
                │ fee_asset: BTS                                             
                │ lower_bound: 0.1                                           
                │ market: BTS/CNY                                            
                │ min_order_lifetime: 6                                      
                │ mode: both                                                 
                │ module: dexbot.strategies.king_of_the_hill                 
                │ relative_order_size: True                                  
                │ sell_order_amount: 1.0                                     
                │ sell_order_size_threshold: 1.0                             
                │ upper_bound: 1.0 

Specifications

  • Version: 0.15.5
  • OS: Ubuntu Server 18.04
@bitphage
Copy link
Collaborator

If you're operating in mode: both it's supposed you have both BASE and QUOTE assets. If only one asset available, mode should be set to "buy" or "sell".

Though for convenience we can wait until sell order fills so BASE asset become available and place both orders after this.

@bitphage bitphage self-assigned this Aug 27, 2019
@froooze froooze changed the title KOH with one asset KOTH with one asset Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants