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

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

# CustomSymbol.SwapTimeInMinutes

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

## SwapTimeInMinutes

Gets / sets the SWAP time in minutes.

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
int SwapTimeInMinutes {get; set;}
```

Python:

```python
customSymbol.SwapTimeInMinutes: int
```

### Returns

`int` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.SwapTimeInMinutes = 22 * 60;
Print("Swap is charged at {0}", TimeSpan.FromMinutes(customSymbol.SwapTimeInMinutes));
```

Python:

```python
from System import TimeSpan
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.SwapTimeInMinutes = 22 * 60
api.Print(f"Swap is charged at {TimeSpan.FromMinutes(customSymbol.SwapTimeInMinutes)}")
```

