mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
conftest_usdt trades - align open orders
This commit is contained in:
@@ -36,13 +36,13 @@ def mock_order_usdt_1_exit(is_short: bool):
|
|||||||
return {
|
return {
|
||||||
'id': f'prod_exit_1_{direc(is_short)}',
|
'id': f'prod_exit_1_{direc(is_short)}',
|
||||||
'symbol': 'LTC/USDT',
|
'symbol': 'LTC/USDT',
|
||||||
'status': 'closed',
|
'status': 'open',
|
||||||
'side': exit_side(is_short),
|
'side': exit_side(is_short),
|
||||||
'type': 'limit',
|
'type': 'limit',
|
||||||
'price': 8.0,
|
'price': 8.0,
|
||||||
'amount': 2.0,
|
'amount': 2.0,
|
||||||
'filled': 2.0,
|
'filled': 0.0,
|
||||||
'remaining': 0.0,
|
'remaining': 2.0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -96,13 +96,13 @@ def mock_order_usdt_2_exit(is_short: bool):
|
|||||||
return {
|
return {
|
||||||
'id': f'12366_{direc(is_short)}',
|
'id': f'12366_{direc(is_short)}',
|
||||||
'symbol': 'NEO/USDT',
|
'symbol': 'NEO/USDT',
|
||||||
'status': 'closed',
|
'status': 'open',
|
||||||
'side': exit_side(is_short),
|
'side': exit_side(is_short),
|
||||||
'type': 'limit',
|
'type': 'limit',
|
||||||
'price': 2.05,
|
'price': 2.05,
|
||||||
'amount': 100.0,
|
'amount': 100.0,
|
||||||
'filled': 100.0,
|
'filled': 0.0,
|
||||||
'remaining': 0.0,
|
'remaining': 100.0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -378,7 +378,7 @@ def mock_trade_usdt_7(fee, is_short: bool):
|
|||||||
open_date=datetime.now(tz=timezone.utc) - timedelta(minutes=17),
|
open_date=datetime.now(tz=timezone.utc) - timedelta(minutes=17),
|
||||||
open_rate=2.0,
|
open_rate=2.0,
|
||||||
exchange='binance',
|
exchange='binance',
|
||||||
open_order_id=f'1234_{direc(is_short)}',
|
open_order_id=None,
|
||||||
strategy='StrategyTestV2',
|
strategy='StrategyTestV2',
|
||||||
timeframe=5,
|
timeframe=5,
|
||||||
is_short=is_short,
|
is_short=is_short,
|
||||||
|
|||||||
Reference in New Issue
Block a user