Convert ROI result to proper json object

closes #4952
This commit is contained in:
Matthias
2021-05-17 20:58:50 +02:00
parent 3006396398
commit 6aa574fa2b
2 changed files with 6 additions and 5 deletions

View File

@@ -185,7 +185,8 @@ class Hyperopt:
if HyperoptTools.has_space(self.config, 'sell'):
result['sell'] = {p.name: params.get(p.name) for p in self.sell_space}
if HyperoptTools.has_space(self.config, 'roi'):
result['roi'] = self.custom_hyperopt.generate_roi_table(params)
result['roi'] = {str(k): v for k, v in
self.custom_hyperopt.generate_roi_table(params).items()}
if HyperoptTools.has_space(self.config, 'stoploss'):
result['stoploss'] = {p.name: params.get(p.name) for p in self.stoploss_space}
if HyperoptTools.has_space(self.config, 'trailing'):