---
id: "P:cAlgo.API.BacktestingCompletedEventArgs.JsonReport"
kind: "property"
type: "T:cAlgo.API.BacktestingCompletedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/BacktestingCompletedEventArgs/JsonReport/"
---

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

# BacktestingCompletedEventArgs.JsonReport

Member of [BacktestingCompletedEventArgs](https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/BacktestingCompletedEventArgs/index.md).

## JsonReport

Gets the JSON report of the backtesting results.

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
public string JsonReport {get;}
```

Python:

```python
backtestingCompletedEventArgs.JsonReport: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Backtesting.Completed += OnBacktestingCompleted;
}

private void OnBacktestingCompleted(BacktestingCompletedEventArgs args)
{
    if (args.JsonReport != null)
        Print("JSON report: {0}", args.JsonReport);
}
```

Python:

```python
def on_start(self):
    api.Backtesting.Completed += self.on_backtesting_completed

def on_backtesting_completed(self, args):
    if args.JsonReport is not None:
        api.Print(f"JSON report: {args.JsonReport}")
```

