---
id: "M:cAlgo.API.CustomSymbolFuturesSettings.#ctor(System.DateTime,System.DateTime,System.Nullable{System.Double})"
kind: "constructor"
type: "T:cAlgo.API.CustomSymbolFuturesSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/Constructor/"
---

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

# CustomSymbolFuturesSettings constructor

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

## CustomSymbolFuturesSettings(DateTime lastTradeTime, DateTime expirationTime, double? maintenanceMargin)

Creates a new custom symbol futures settings.

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 CustomSymbolFuturesSettings(DateTime lastTradeTime, DateTime expirationTime, double? maintenanceMargin)
```

Python:

```python
CustomSymbolFuturesSettings(lastTradeTime: DateTime, expirationTime: DateTime, maintenanceMargin: float | None)
```

### Parameters

- `lastTradeTime` (`DateTime`, Python `DateTime`): Last contract trade time
- `expirationTime` (`DateTime`, Python `DateTime`): Contract expiration time
- `maintenanceMargin` (`double?`, Python `float | None`): Amount of maintenance margin

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, 0, 0, 0), null);
Print("Last trade time: {0}, maintenance margin: {1}", futuresSettings.LastTradeTime, futuresSettings.MaintenanceMargin);
```

Python:

```python
from System import DateTime
futuresSettings = CustomSymbolFuturesSettings(DateTime(2025, 12, 19, 20, 0, 0), DateTime(2025, 12, 22, 0, 0, 0), None)
api.Print(f"Last trade time: {futuresSettings.LastTradeTime}, maintenance margin: {futuresSettings.MaintenanceMargin}")
```

