BlackBot icon indicating copy to clipboard operation
BlackBot copied to clipboard

The get_last_price function doesn't work

Open kinbitz opened this issue 4 years ago • 1 comments

https://github.com/PyWaves/BlackBot/blob/83838873d169563fd5f4ba06cbf1cf8000eb43a4/BlackBot.py#L59

It returns 0 instead of the last price for me.

kinbitz avatar Jan 12 '22 14:01 kinbitz

I changed this to use the PAIR.last() function last_trade_price = int(float(PAIR.last())10*(8 + PAIR.asset2.decimals - PAIR.asset1.decimals))

kinbitz avatar Jan 13 '22 17:01 kinbitz