yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.51k stars 826 forks source link

RFE Timestamp + Symbol #169

Open Blueing opened 6 years ago

Blueing commented 6 years ago

Hey,

I would request a timestamp + symbol before every output or something like this for better monitoring. Like [time.strftime('%X')] and [self.option.symbol] before every print

Greetz!

Maathouse commented 6 years ago

Hi!

Replace this with the screenlog part in Trading.py, it also gives the spread:

    # Screen log
    if self.option.prints and self.order_id == 0:
        spreadPerc = (lastAsk/lastBid - 1) * 100.0
        print ('price:%.8f buyp:%.8f sellp:%.8f-bid:%.8f ask:%.8f spread:%.2f' % (lastPrice, buyPrice, profitableSellingPrice, lastBid, lastAsk, spreadPerc), symbol)