def log_error(request, token, trade_id): return Trade(request).log_action(trade_id, 'error', '')
def expired(request, token, trade_id): return Trade(request).log_action(trade_id, 'expired', '')
def log_info(request, token, trade_id): return Trade(request).log_action(trade_id, 'info', '')
def update(request, token, trade_id): return Trade(request).log_action(trade_id, 'update', '')
def close(request, token, trade_id): return Trade(request).log_action(trade_id, 'close', '')
def fill(request, token, trade_id): return Trade(request).log_action(trade_id, 'fill', '')
def open(request, token, trade_id): return Trade(request).log_action(trade_id, 'open', '')
def for_signal(request, token, signal_id): return Trade(request).get_trade_by_signal(signal_id)
def details(request, token, trade_id): return Trade(request).get_trade(trade_id)
def index(request, token): return Trade(request).get_list()