---
id: "T:cAlgo.API.TradingPermission"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Permissions/TradingPermission/"
---

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

# TradingPermission (interface)

Trading Permission

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface TradingPermission
```

## Examples

C#:

```csharp
if (!Permissions.TradingPermission.IsAllowed && !Permissions.TradingPermission.Request())
    Print("Trading permission was denied by the user");
```

Python:

```python
if not api.Permissions.TradingPermission.IsAllowed and not api.Permissions.TradingPermission.Request():
    api.Print("Trading permission was denied by the user")
```

## Inherited members

- `bool Request()` (from Permission) [details](https://help.ctrader.com/ctrader-algo/references/Permissions/Permission/Request/index.md)
- `bool IsAllowed {get;}` (from Permission) [details](https://help.ctrader.com/ctrader-algo/references/Permissions/Permission/IsAllowed/index.md)

