BlackBot
BlackBot copied to clipboard
The get_last_price function doesn't work
https://github.com/PyWaves/BlackBot/blob/83838873d169563fd5f4ba06cbf1cf8000eb43a4/BlackBot.py#L59
It returns 0 instead of the last price for me.
I changed this to use the PAIR.last() function last_trade_price = int(float(PAIR.last())10*(8 + PAIR.asset2.decimals - PAIR.asset1.decimals))