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

Staggered orders error: cant calculate centre price when fixed centre price is given #563

Closed
CryptoKong opened this issue Apr 18, 2019 · 6 comments
Assignees
Labels
[3] Type: Bug [5] Small Task Indicates size of task. Est. between one and two hours

Comments

@CryptoKong
Copy link

Expected Behavior

worker should work off given fixed centre price

Actual Behavior

error says cant calculate centre price

Steps to Reproduce the Problem

1.setup staggered worker in completley dead market with no orders (i was using valley mode)
2.start worker
3.error

Specifications

  • Version:0.10.1
  • OS:ubuntu 18.04
@bitphage bitphage added [2] Needs Verification Issue needs verification [5] Small Task Indicates size of task. Est. between one and two hours labels Apr 21, 2019
@bitphage
Copy link
Collaborator

@CryptoKong I was unable to reproduce this issue, can you please copy-paste your dexbot config here?

@CryptoKong
Copy link
Author

Sorry not sure which file you mean, could you be more specific, in the mean time, here is my setup and the error message.
image

Traceback (most recent call last):
File "/home/cryptokong/.local/lib/python3.6/site-packages/dexbot-0.10.1-py3.6.egg/dexbot/worker.py", line 76, in init_workers
view=self.view
File "/home/cryptokong/.local/lib/python3.6/site-packages/dexbot-0.10.1-py3.6.egg/dexbot/strategies/staggered_orders.py", line 115, in init
self.update_gui_profit()
File "/home/cryptokong/.local/lib/python3.6/site-packages/dexbot-0.10.1-py3.6.egg/dexbot/strategies/base.py", line 1390, in update_gui_profit
profit = self.calc_profit()
File "/home/cryptokong/.local/lib/python3.6/site-packages/dexbot-0.10.1-py3.6.egg/dexbot/strategies/base.py", line 1167, in calc_profit
max_quantity_base = base_balance + quote_balance * center_price
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'

image

@bitphage
Copy link
Collaborator

You got this traceback from the console?
Dexbot config is usually ~/.config/dexbot/config.yml

@bitphage
Copy link
Collaborator

The error TypeError: unsupported operand type(s) for *: 'float' and 'NoneType' is a different error, I created a new issue for it, #567

@bitphage bitphage added [3] Type: Bug and removed [2] Needs Verification Issue needs verification labels Apr 23, 2019
@bitphage
Copy link
Collaborator

@CryptoKong I was able to reproduce this issue, no further input is needed, thanks.

@CryptoKong
Copy link
Author

Ok cool, sorry for my slow response, busy bank holiday weekend here. Glad you could reproduce. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[3] Type: Bug [5] Small Task Indicates size of task. Est. between one and two hours
Projects
None yet
Development

No branches or pull requests

2 participants