|
|
@ -7,6 +7,14 @@ from settings import settings
|
|
|
|
|
|
|
|
|
|
|
|
class GenericCommands(object):
|
|
|
|
class GenericCommands(object):
|
|
|
|
class trades(object):
|
|
|
|
class trades(object):
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def got_trades(trades, msg):
|
|
|
|
|
|
|
|
if not trades:
|
|
|
|
|
|
|
|
msg("No open trades.")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
for trade_id in trades:
|
|
|
|
|
|
|
|
msg(trade_id)
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, tx, ux, caller):
|
|
|
|
def run(cmd, spl, length, authed, msg, agora, tx, ux, caller):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -14,12 +22,7 @@ class GenericCommands(object):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
trades = caller.get_dashboard_irc()
|
|
|
|
trades = caller.get_dashboard_irc()
|
|
|
|
|
|
|
|
trades.addCallback(GenericCommands.trades.got_trades, msg)
|
|
|
|
if not trades:
|
|
|
|
|
|
|
|
msg("No open trades.")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
for trade_id in trades:
|
|
|
|
|
|
|
|
msg(trade_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class create(object):
|
|
|
|
class create(object):
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|