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

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

# CustomSymbol.WeekendSwaps

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

## WeekendSwaps

Gets / sets whether swap is charged on weekends or not.

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
bool WeekendSwaps {get; set;}
```

Python:

```python
customSymbol.WeekendSwaps: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.WeekendSwaps = false;
Print("Swaps charged on weekends: {0}", customSymbol.WeekendSwaps);
```

Python:

```python
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.WeekendSwaps = False
api.Print(f"Swaps charged on weekends: {customSymbol.WeekendSwaps}")
```

