---
id: "P:cAlgo.API.CustomSymbolFuturesSettings.MaintenanceMargin"
kind: "property"
type: "T:cAlgo.API.CustomSymbolFuturesSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/MaintenanceMargin/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CustomSymbolFuturesSettings.MaintenanceMargin

Member of [CustomSymbolFuturesSettings](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/index.md).

## MaintenanceMargin

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

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public double? MaintenanceMargin {get;}
```

Python:

```python
customSymbolFuturesSettings.MaintenanceMargin: float | None
```

### Returns

`double?` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
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);
```

Python:

```python
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}")
```

