Function overrideRiskSchema

  • Overrides an existing risk management configuration in the framework.

    This function partially updates a previously registered risk configuration with new settings. Only the provided fields will be updated, other fields remain unchanged.

    Parameters

    • riskSchema: TRiskSchema

      Partial risk configuration object

      • riskName

        Unique risk profile identifier (must exist)

      • maxConcurrentPositions

        Optional: Max number of open positions

      • validations

        Optional: Custom validation functions

      • callbacks

        Optional: Lifecycle callbacks

    Returns Promise<IRiskSchema>

    overrideRisk({
    riskName: "conservative",
    maxConcurrentPositions: 3, // Only reduce max positions
    });