Skip to content

CustomSymbolFuturesSettings.MaintenanceMargin

property · CustomSymbolFuturesSettings · cAlgo.API Since 5.3

DesktopCLICloud

The amount of quote asset that will be taken as a margin per one traded lot.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public double? MaintenanceMargin {get;}
customSymbolFuturesSettings.MaintenanceMargin: float | None

Returns double?

Examples

var futuresSettings = new CustomSymbolFuturesSettings(new DateTime(2025, 12, 19, 20, 0, 0), new DateTime(2025, 12, 22), 500);
if (futuresSettings.MaintenanceMargin.HasValue)
    Print("Maintenance margin per lot: {0}", futuresSettings.MaintenanceMargin.Value);
from System import DateTime
futuresSettings = CustomSymbolFuturesSettings(DateTime(2025, 12, 19, 20, 0, 0), DateTime(2025, 12, 22), 500)
if futuresSettings.MaintenanceMargin is not None:
    api.Print(f"Maintenance margin per lot: {futuresSettings.MaintenanceMargin}")