---
id: "P:cAlgo.API.TicksTickEventArgs.Ticks"
kind: "property"
type: "T:cAlgo.API.TicksTickEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/TicksTickEventArgs/Ticks/"
---

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

# TicksTickEventArgs.Ticks

Member of [TicksTickEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/TicksTickEventArgs/index.md).

## Ticks

Gets the Ticks data.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public Ticks Ticks {get;}
```

Python:

```python
ticksTickEventArgs.Ticks: Ticks
```

### Returns

`Ticks` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var ticks = MarketData.GetTicks("EURUSD");
    ticks.Tick += OnTicksTick;
}

private void OnTicksTick(TicksTickEventArgs args)
{
    var lastTick = args.Ticks.LastTick;
    Print("{0} | Bid: {1} | Ask: {2} | Time: {3}", args.Ticks.SymbolName, lastTick.Bid, lastTick.Ask, lastTick.Time);
}
```

Python:

```python
def on_start(self):
    self.ticks = api.MarketData.GetTicks("EURUSD")
    self.ticks.Tick += self.on_ticks_tick

def on_ticks_tick(self, args):
    lastTick = args.Ticks.LastTick
    api.Print(f"{args.Ticks.SymbolName} | Bid: {lastTick.Bid} | Ask: {lastTick.Ask} | Time: {lastTick.Time}")
```

