Improve generate_test_data to make it easier to use
This commit is contained in:
@@ -39,17 +39,25 @@ def hyperopt(hyperopt_conf, mocker):
|
||||
def hyperopt_results():
|
||||
return pd.DataFrame(
|
||||
{
|
||||
'pair': ['ETH/BTC', 'ETH/BTC', 'ETH/BTC', 'ETH/BTC'],
|
||||
'pair': ['ETH/USDT', 'ETH/USDT', 'ETH/USDT', 'ETH/USDT'],
|
||||
'profit_ratio': [-0.1, 0.2, -0.1, 0.3],
|
||||
'profit_abs': [-0.2, 0.4, -0.2, 0.6],
|
||||
'trade_duration': [10, 30, 10, 10],
|
||||
'amount': [0.1, 0.1, 0.1, 0.1],
|
||||
'sell_reason': [SellType.STOP_LOSS, SellType.ROI, SellType.STOP_LOSS, SellType.ROI],
|
||||
'open_date':
|
||||
[
|
||||
datetime(2019, 1, 1, 9, 15, 0),
|
||||
datetime(2019, 2, 1, 8, 55, 0),
|
||||
datetime(2019, 3, 1, 9, 15, 0),
|
||||
datetime(2019, 4, 1, 9, 15, 0),
|
||||
],
|
||||
'close_date':
|
||||
[
|
||||
datetime(2019, 1, 1, 9, 26, 3, 478039),
|
||||
datetime(2019, 2, 1, 9, 26, 3, 478039),
|
||||
datetime(2019, 3, 1, 9, 26, 3, 478039),
|
||||
datetime(2019, 4, 1, 9, 26, 3, 478039),
|
||||
]
|
||||
datetime(2019, 1, 1, 9, 25, 0),
|
||||
datetime(2019, 2, 1, 9, 25, 0),
|
||||
datetime(2019, 3, 1, 9, 25, 0),
|
||||
datetime(2019, 4, 1, 9, 25, 0),
|
||||
],
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user