ezyquant_execution.context.ExecuteContextSymbol.buy_pct_port#
- ExecuteContextSymbol.buy_pct_port(pct_port: float, **kwargs) EquityOrder | None #
Buy from the percentage of the portfolio. calculate the buy volume by pct_port * port_value / best ask price.
- Parameters:
pct_port (float) – percentage of the portfolio