From 4c0a6611c80016083fdee0dd44c0e2c453d173eb Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 24 Aug 2023 20:17:29 +0200 Subject: [PATCH] remove open_order_id from test mock trades --- tests/conftest_trades.py | 5 ----- tests/conftest_trades_usdt.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/tests/conftest_trades.py b/tests/conftest_trades.py index a7572dc70..a2276ae16 100644 --- a/tests/conftest_trades.py +++ b/tests/conftest_trades.py @@ -46,7 +46,6 @@ def mock_trade_1(fee, is_short: bool): open_date=datetime.now(tz=timezone.utc) - timedelta(minutes=17), open_rate=0.123, exchange='binance', - # open_order_id=f'dry_run_buy_{direc(is_short)}_12345', strategy='StrategyTestV3', timeframe=5, is_short=is_short @@ -210,7 +209,6 @@ def mock_trade_4(fee, is_short: bool): is_open=True, open_rate=0.123, exchange='binance', - # open_order_id=f'prod_buy_{direc(is_short)}_12345', strategy='StrategyTestV3', timeframe=5, is_short=is_short, @@ -327,7 +325,6 @@ def mock_trade_6(fee, is_short: bool): exchange='binance', strategy='SampleStrategy', enter_tag='TEST2', - # open_order_id=f"prod_sell_{direc(is_short)}_6", timeframe=5, is_short=is_short ) @@ -411,7 +408,6 @@ def short_trade(fee): # close_profit_abs=-0.6925113200000013, exchange='binance', is_open=True, - open_order_id=None, strategy='DefaultStrategy', timeframe=5, exit_reason='sell_signal', @@ -502,7 +498,6 @@ def leverage_trade(fee): close_profit_abs=2.5983135000000175, exchange='kraken', is_open=False, - # open_order_id='dry_run_leverage_buy_12368', strategy='DefaultStrategy', timeframe=5, exit_reason='sell_signal', diff --git a/tests/conftest_trades_usdt.py b/tests/conftest_trades_usdt.py index cba9c50a5..d73a53605 100644 --- a/tests/conftest_trades_usdt.py +++ b/tests/conftest_trades_usdt.py @@ -66,7 +66,6 @@ def mock_trade_usdt_1(fee, is_short: bool): close_profit_abs=-4.09, exchange='binance', strategy='SampleStrategy', - # open_order_id=f'prod_exit_1_{direc(is_short)}', timeframe=5, is_short=is_short, ) @@ -123,7 +122,6 @@ def mock_trade_usdt_2(fee, is_short: bool): close_profit_abs=3.9875, exchange='binance', is_open=False, - # open_order_id=f'12366_{direc(is_short)}', strategy='StrategyTestV2', timeframe=5, enter_tag='TEST1', @@ -231,7 +229,6 @@ def mock_trade_usdt_4(fee, is_short: bool): is_open=True, open_rate=2.0, exchange='binance', - # open_order_id=f'prod_buy_12345_{direc(is_short)}', strategy='StrategyTestV2', timeframe=5, is_short=is_short, @@ -340,7 +337,6 @@ def mock_trade_usdt_6(fee, is_short: bool): open_rate=10.0, exchange='binance', strategy='SampleStrategy', - # open_order_id=f'prod_exit_6_{direc(is_short)}', timeframe=5, is_short=is_short, ) @@ -378,7 +374,6 @@ def mock_trade_usdt_7(fee, is_short: bool): open_date=datetime.now(tz=timezone.utc) - timedelta(minutes=17), open_rate=2.0, exchange='binance', - open_order_id=None, strategy='StrategyTestV2', timeframe=5, is_short=is_short,