---
id: "T:cAlgo.API.Tick"
kind: "struct"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Ticks/Tick/"
---

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

# Tick (struct)

Represents the Tick object.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public sealed struct Tick : ValueType
```

## Examples

C#:

```csharp
var tick = MarketData.GetTicks().LastTick;
Print("Tick at {0}, bid: {1}, ask: {2}, spread: {3} pips", tick.Time, tick.Bid, tick.Ask, (tick.Ask - tick.Bid) / Symbol.PipSize);
```

Python:

```python
tick = api.MarketData.GetTicks().LastTick
api.Print(f"Tick at {tick.Time}, bid: {tick.Bid}, ask: {tick.Ask}, spread: {(tick.Ask - tick.Bid) / api.Symbol.PipSize} pips")
```

## Properties

- `public double Ask {get;}` — Gets the Ask price of tick. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Ticks/Tick/Ask/index.md)
- `public double Bid {get;}` — Gets the Bid price of tick. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Ticks/Tick/Bid/index.md)
- `public DateTime Time {get;}` — Gets the Tick time. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Ticks/Tick/Time/index.md)

