---
id: "T:cAlgo.API.CustomSymbolFuturesSettings"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/"
---

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

# CustomSymbolFuturesSettings (class)

Represents a 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.

## Definition

```csharp
public class CustomSymbolFuturesSettings
```

Available since cAlgo.API 5.3.

## Examples

C#:

```csharp
var customSymbol = CustomSymbols.Add("MYGOLD.Z25", Symbols.GetSymbol("XAUUSD"));
customSymbol.FuturesSettings = new CustomSymbolFuturesSettings(new DateTime(2025, 12, 19, 20, 0, 0), new DateTime(2025, 12, 22, 0, 0, 0), 500);
Print("Contract expires at {0}", customSymbol.FuturesSettings.ExpirationTime);
```

Python:

```python
from System import DateTime
customSymbol = api.CustomSymbols.Add("MYGOLD.Z25", api.Symbols.GetSymbol("XAUUSD"))
customSymbol.FuturesSettings = CustomSymbolFuturesSettings(DateTime(2025, 12, 19, 20, 0, 0), DateTime(2025, 12, 22, 0, 0, 0), 500)
api.Print(f"Contract expires at {customSymbol.FuturesSettings.ExpirationTime}")
```

## Constructors

- `public CustomSymbolFuturesSettings(DateTime lastTradeTime, DateTime expirationTime, double? maintenanceMargin)` — Creates a new custom symbol futures settings. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/Constructor/index.md)

## Properties

- `public DateTime ExpirationTime {get;}` — Gets the expiration time of future contract. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/ExpirationTime/index.md)
- `public DateTime LastTradeTime {get;}` — Gets the last trade time of future contract. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/LastTradeTime/index.md)
- `public double? MaintenanceMargin {get;}` — The amount of quote asset that will be taken as a margin per one traded lot. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolFuturesSettings/MaintenanceMargin/index.md)

