|
|
@ -465,3 +465,23 @@ class IRCCommands(object):
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
|
|
|
total = tx.get_total_with_trades()
|
|
|
|
total = tx.get_total_with_trades()
|
|
|
|
msg(f"${total}")
|
|
|
|
msg(f"${total}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class profit(object):
|
|
|
|
|
|
|
|
name = "profit"
|
|
|
|
|
|
|
|
authed = True
|
|
|
|
|
|
|
|
helptext = "Get total profit."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
|
|
|
|
|
|
|
total = tx.get_profit()
|
|
|
|
|
|
|
|
msg(f"Profit: {total}USD")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class tprofit(object):
|
|
|
|
|
|
|
|
name = "tprofit"
|
|
|
|
|
|
|
|
authed = True
|
|
|
|
|
|
|
|
helptext = "Get total profit with open trades."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
|
|
|
|
|
|
|
|
total = tx.get_profit(True)
|
|
|
|
|
|
|
|
msg(f"Profit: {total}USD")
|
|
|
|