normalise_weights#

API documentation for tradeexecutor.strategy.weighting.normalise_weights Python function.

normalise_weights(weights)[source]#

Normalise weight distribution so that the sum of weights is 1.

Parameters:

weights (Dict[int, float]) –

Return type:

Dict[int, float]