mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2025-12-21 07:24:20 +01:00
(feat) add input components
This commit is contained in:
@@ -6,7 +6,7 @@ from hummingbot.strategy_v2.utils.distributions import Distributions
|
||||
|
||||
def normalize(values):
|
||||
total = sum(values)
|
||||
return [Decimal(val / total) for val in values]
|
||||
return [val / total for val in values]
|
||||
|
||||
|
||||
def distribution_inputs(column, dist_type_name, levels=3):
|
||||
|
||||
Reference in New Issue
Block a user