Add test for show_trades
This commit is contained in:
@@ -212,8 +212,8 @@ def start_show_trades(args: Dict[str, Any]) -> None:
|
||||
if config.get('trade_ids'):
|
||||
tfilter.append(Trade.id.in_(config['trade_ids']))
|
||||
|
||||
trades = Trade.get_trades(tfilter)
|
||||
logger.info("Printing Trades: ")
|
||||
trades = Trade.get_trades(tfilter).all()
|
||||
logger.info(f"Printing {len(trades)} Trades: ")
|
||||
if config.get('print_json', False):
|
||||
print(json.dumps([trade.to_json() for trade in trades], indent=4))
|
||||
else:
|
||||
|
Reference in New Issue
Block a user