def opportunity(self, profit, volume, buyprice, kask, sellprice, kbid, perc,
                    weighted_buyprice, weighted_sellprice):
        if config.profit_thresh > profit and perc > config.perc_thresh:
            message = """profit: %f USD with volume: %f BTC
buy at %.4f (%s) sell at %.4f (%s) ~%.2f%%
""" % (profit, volume, buyprice, kask, sellprice, kbid, perc)
            send_email("Arbitrage Bot", message)
dataset/ETHPy150Open maxme/bitcoin-arbitrage/arbitrage/observers/emailer.py/Emailer.opportunity/swapped operands of `>`