---
id: "T:cAlgo.API.MarketDepthEntry"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/MarketDepth/MarketDepthEntry/"
---

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

# MarketDepthEntry (interface)

Provides access to market depth prices and volumes

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface MarketDepthEntry
```

## Examples

C#:

```csharp
var marketDepth = MarketData.GetMarketDepth("EURUSD");
foreach (var entry in marketDepth.AskEntries)
{
    // The price and the volume of this market depth entry
    Print("Price: {0}, Volume: {1}", entry.Price, entry.VolumeInUnits);
}
```

Python:

```python
marketDepth = api.MarketData.GetMarketDepth("EURUSD")
for entry in marketDepth.AskEntries:
    # The price and the volume of this market depth entry
    api.Print(f"Price: {entry.Price}, Volume: {entry.VolumeInUnits}")
```

## Properties

- `double Price {get;}` — The price of this market depth entry [details](https://help.ctrader.com/ctrader-algo/references/MarketData/MarketDepth/MarketDepthEntry/Price/index.md)
- `double VolumeInUnits {get;}` — The volume of this market depth entry [details](https://help.ctrader.com/ctrader-algo/references/MarketData/MarketDepth/MarketDepthEntry/VolumeInUnits/index.md)

## Deprecated members

- `long Volume {get;}` — Use VolumeInUnits instead

