alpheast.position_sizing.common.fixed_allocation_sizing module

class alpheast.position_sizing.common.fixed_allocation_sizing.FixedAllocationSizing(allocation_percent)[source]

Bases: BasePositionSizing

calculate_quantity(symbol, direction, current_price, portfolio_cash, portfolio_holdings, **kwargs)[source]

Calculates the quantity to trade based on the given context.

Return type:

Decimal