---
id: "T:cAlgo.API.AlgoTypeEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/AlgoTypeEventArgs/"
---

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

# AlgoTypeEventArgs (class)

Base structure that provides data for Algo registry events.

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

- Cloud: Never raised in the cloud: the events that pass it never fire there (AlgoRegistry.AlgoTypeChanged, AlgoRegistry.AlgoTypeDeleted, AlgoRegistry.AlgoTypeInstalled).

## Definition

```csharp
public abstract class AlgoTypeEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    AlgoRegistry.AlgoTypeInstalled += OnAlgoTypeEvent;
    AlgoRegistry.AlgoTypeChanged += OnAlgoTypeEvent;
    AlgoRegistry.AlgoTypeDeleted += OnAlgoTypeEvent;
}

private void OnAlgoTypeEvent(AlgoTypeEventArgs args)
{
    Print("{0}: {1}", args.GetType().Name, args.AlgoTypeName);
}
```

Python:

```python
def on_start(self):
    api.AlgoRegistry.AlgoTypeInstalled += self.on_algo_type_event
    api.AlgoRegistry.AlgoTypeChanged += self.on_algo_type_event
    api.AlgoRegistry.AlgoTypeDeleted += self.on_algo_type_event

def on_algo_type_event(self, args):
    api.Print(f"{type(args).__name__}: {args.AlgoTypeName}")
```

## Properties

- `public string AlgoTypeName {get;}` — Algo Type Name [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/AlgoTypeEventArgs/AlgoTypeName/index.md)

