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

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

# PluginType (interface)

Represents a plugin algorithm type.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Never available in the cloud: it is only returned by members that do not work there (AlgoRegistry.Plugins).

## Definition

```csharp
public interface PluginType
```

## Examples

C#:

```csharp
public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        if (AlgoRegistry.Get("Sample Test Plugin", AlgoKind.Plugin) is PluginType pluginType)
            Print($"Name: {pluginType.Name} | Parameters #: {pluginType.Parameters.Count}");
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

from System import Action

class Test():
    def on_start(self):
        algoType = api.AlgoRegistry.Get("Sample Test Plugin", AlgoKind.Plugin)
        if algoType is not None:
            pluginType = PluginType(algoType)
            print(f"Name: {pluginType.Name} | Parameters #: {pluginType.Parameters.Count}")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

## Properties

- `bool IsEnabled {get;}` — Returns true if plugin is enabled otherwise false. [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/PluginType/IsEnabled/index.md)
- `IReadonlyList<AlgoParameter> Parameters {get;}` — Gets collection of Plugin parameters. [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/PluginType/Parameters/index.md)

## Inherited members

- `string Name {get;}` (from AlgoType) [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoType/Name/index.md)
- `AlgoKind AlgoKind {get;}` (from AlgoType) [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoType/AlgoKind/index.md)
- `string ProjectFilePath {get;}` (from AlgoType) [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoType/ProjectFilePath/index.md)

