---
id: "T:cAlgo.API.PriceType"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/PriceType/"
---

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

# PriceType (enum)

An enumeration of the different price types.

Environments: Desktop supported · CLI supported · Cloud supported.

**Deprecated:** Use StandardSeriesType instead.

## Definition

```csharp
public enum PriceType
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo;

public partial class Test : Indicator
{
    protected override void Initialize()
    {
        var openPrices = Bars.GetPrices(PriceType.Open);
        Print($"Last Open Price is: {openPrices.LastValue}");
    }

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

Python:

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

from cAlgo.API import *

class Test():
    def initialize(self):
        openPrices = api.Bars.GetPrices(PriceType.Open)
        print(f"Last Open Price is: {openPrices.LastValue}")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

## Values

- `PriceType.Open` — Bar Open price.
- `PriceType.High` — Bar High price.
- `PriceType.Low` — Bar Low price.
- `PriceType.Close` — Bar close price.
- `PriceType.TickVolume` — Bar tick volume.
- `PriceType.Median` — Bar median price.
- `PriceType.Typical` — Bar typical price.
- `PriceType.Weighted` — Bar weighted price.
- `PriceType.Average` — Bar average price.

