binance-trader icon indicating copy to clipboard operation
binance-trader copied to clipboard

RFE Timestamp + Symbol

Open Blueing opened this issue 7 years ago • 1 comments

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!

Blueing avatar Jan 27 '18 11:01 Blueing

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)

Maathouse avatar Feb 20 '18 18:02 Maathouse