geek-at / phptrader

A simple php powered Bitcoin and Ethereum trading bot
143 stars 41 forks source link

Rounding issue #2

Closed vanclute closed 7 years ago

vanclute commented 7 years ago

I made one small change to my copy so the "Difference" price will be rounded properly:

        echo "[i] Difference buy/sell: ".round(abs($this->buyPrice-$this->sellPrice),2)."\n\n";