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

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

# SymbolTickEventArgs (class)

Provides data for the symbol tick event.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public class SymbolTickEventArgs
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This example shows how to use the SymbolTickEventArgs
    public partial class SymbolTickEventArgsSample : Indicator
    {
        protected override void Initialize()
        {
            Symbol.Tick += OnSymbolTick;
        }

        private void OnSymbolTick(SymbolTickEventArgs obj)
        {
            Print("Symbol: {0} | Ask: {1} | Bid: {2}", obj.SymbolName, obj.Ask, obj.Bid);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Symbol.Tick += self.on_symbol_tick

    def on_symbol_tick(self, args):
        print(f"Symbol: {args.SymbolName} | Ask: {args.Ask} | Bid: {args.Bid}")
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}
```

## Properties

- `public double Ask {get;}` — Gets the ask price. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/SymbolTickEventArgs/Ask/index.md)
- `public double Bid {get;}` — Gets the bid price. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/SymbolTickEventArgs/Bid/index.md)
- `public Symbol Symbol {get;}` — Gets the symbol. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/SymbolTickEventArgs/Symbol/index.md)
- `public string SymbolName {get;}` — Gets the symbol name. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/SymbolTickEventArgs/SymbolName/index.md)

