ezyquant_execution.context.ExecuteContextSymbol.target_pct_port#
- ExecuteContextSymbol.target_pct_port(pct_port: float, **kwargs) EquityOrder | None #
Buy/Sell to make the current position reach the target percentage of the portfolio. Calculate the buy/sell volume by compare between the best bid/ask price.
- Parameters:
pct_port (float) – percentage of the portfolio