def new_order_notify(self, kexchange, type, maker_only=True, amount=None, price=None):
order = super().new_order(kexchange, type, maker_only, amount, price)
if order:
# self.notify_msg(order['type'], order['price'])
t = threading.Thread(target = self.notify_msg, args=(order['type'], order['price'],))
t.start()
logging.info("current has %d threads" % (threading.activeCount() - 1))
评论列表
文章目录