binance-trader
binance-trader copied to clipboard
RFE Timestamp + Symbol
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!
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)