get_existing_portfolio_weights#

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

get_existing_portfolio_weights(portfolio)[source]#

Calculate the existing portfolio weights.

Cash is not included in the weighting.

Parameters:

portfolio (Portfolio) –

Return type:

Dict[int, float]