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

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

# FuturesSettings.LastTradeTime

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

## LastTradeTime

Gets the last trade time of future contract.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime LastTradeTime {get;}
```

Python:

```python
futuresSettings.LastTradeTime: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var futuresSettings = Symbol.FuturesSettings;
if (futuresSettings != null && Server.Time >= futuresSettings.LastTradeTime)
    Print("Trading for {0} has ended", SymbolName);
```

Python:

```python
futuresSettings = api.Symbol.FuturesSettings
if futuresSettings is not None and api.Server.Time >= futuresSettings.LastTradeTime:
    api.Print(f"Trading for {api.SymbolName} has ended")
```

