---
id: "P:cAlgo.API.Internals.Symbol.Sentiment"
kind: "property"
type: "T:cAlgo.API.Internals.Symbol"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/Sentiment/"
---

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

# Symbol.Sentiment

Member of [Symbol](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/index.md).

## Sentiment

Gets symbol sentiment.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: No sentiment source in the cloud host; reading the returned values blocks up to 1 minute, then fails with a timeout.

C#:

```csharp
SymbolSentiment Sentiment {get;}
```

Python:

```python
api.Symbol.Sentiment: SymbolSentiment
```

### Returns

`SymbolSentiment` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo.Robots;

public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        Print($"Symbol {SymbolName} traders sentiment Buy Percentage: {Symbol.Sentiment.BuyPercentage} and Sell Percentage: {Symbol.Sentiment.SellPercentage}");
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        print(f"Symbol {api.SymbolName} traders sentiment Buy Percentage: {api.Symbol.Sentiment.BuyPercentage} and Sell Percentage: {api.Symbol.Sentiment.SellPercentage}")
```

config.json:

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

