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

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

# CustomSymbol.SwapCalculationType

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

## SwapCalculationType

Gets / sets the symbol SWAP calculation type.

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
SymbolSwapCalculationType SwapCalculationType {get; set;}
```

Python:

```python
customSymbol.SwapCalculationType: SymbolSwapCalculationType
```

### Returns

`SymbolSwapCalculationType` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.SwapCalculationType = SymbolSwapCalculationType.Percentage;
Print("Swap calculation type: {0}", customSymbol.SwapCalculationType);
```

Python:

```python
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.SwapCalculationType = SymbolSwapCalculationType.Percentage
api.Print(f"Swap calculation type: {customSymbol.SwapCalculationType}")
```

