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

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

# PopupNotification (interface)

Represents a popup notification.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Complete only changes the local State; nothing is shown. Still throws InvalidOperationException when the state is not InProgress.
- Cloud: Complete only changes the local State; nothing is shown. Still throws InvalidOperationException when the state is not InProgress.

## Definition

```csharp
public interface PopupNotification
```

Available since cAlgo.API 5.3.

## Examples

C#:

```csharp
var popup = Notifications.ShowPopup("Order", "Placing a buy order...", PopupNotificationState.InProgress);
var result = ExecuteMarketOrder(TradeType.Buy, SymbolName, Symbol.VolumeInUnitsMin);
popup.Complete(result.IsSuccessful ? PopupNotificationState.Success : PopupNotificationState.Error);
```

Python:

```python
popup = api.Notifications.ShowPopup("Order", "Placing a buy order...", PopupNotificationState.InProgress)
result = api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, api.Symbol.VolumeInUnitsMin)
popup.Complete(PopupNotificationState.Success if result.IsSuccessful else PopupNotificationState.Error)
```

## Methods

- `void Complete(PopupNotificationState finalState)` — Completes an InProgress popup notification. [details](https://help.ctrader.com/ctrader-algo/references/Notifications/PopupNotification/Complete/index.md)

## Properties

- `PopupNotificationState State {get;}` — Gets state of popup notification. [details](https://help.ctrader.com/ctrader-algo/references/Notifications/PopupNotification/State/index.md)

