get_weight_diffs#

API documentation for tradeexecutor.strategy.pandas_trader.rebalance.get_weight_diffs Python function.

get_weight_diffs(existing_weights, new_weights)[source]#

Get the weight diffs.

The diffs include one entry for each token in existing or new portfolio.

Parameters:
Return type:

Dict[int, float]