alpheast.position_sizing.common.fixed_quantity_sizing module

class alpheast.position_sizing.common.fixed_quantity_sizing.FixedQuantitySizing(quantity)[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