PyWaves / BlackBot

Grid Trading Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

int base price is whole waves, float base fails

sabotagebeats opened this issue · comments

in the config file:
base = 1
will start the base at 1 waves
base = 0.99
or smaller fails with error:

Traceback (most recent call last): File "BlackBot.py", line 146, in <module> if basePrice == 0: NameError: name 'basePrice' is not defined

so now there is no way to create base price under 1 waves

correction: using ASK for base DOES NOT WORK, still creates orders with integer waves amounts instead of float waves
example:
if ask is 0.00000005 it creates sell orders of 5 waves

it thinks it is leaving float prices but in the orderbook they show up as int prices

[Aug 29 2018 20:13:26 UTC] �[1;37m:�[0;0m >> [051] �[1;31mSELL order 0.00000004�[0;0m

shows up as 4.00000000

I believe this is the commit which changed the way the decimals work

PyWaves/PyWaves@055cad5

fix has been posted to PyWaves/PyWaves#54 please review