> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Get()

## Description

Returns the [TradingHours](/developer/desktop-sdk/references/common/tradinghours) object for the specified Trading Hours template name, such as "CME US Index Futures RTH"

## Method Return Value

A [TradingHours](/developer/desktop-sdk/references/common/tradinghours) object representing the specified Trading Hours template name.

## Syntax

`Get(string name)`

## Parameters

| Parameter | Description                                           |
| --------- | ----------------------------------------------------- |
| name      | The name of the desired TradingHours object to return |

## Examples

```csharp
// Loop through and print all regular holidays in the found TradingHours object
foreach(KeyValuePair<DateTime, string> holiday in TradingHours.Get("CME US Index Futures RTH").Holidays)
{
  Print(String.Format("Date: {0} Description: {1}", holiday.Key, holiday.Value));
}
```