Get()

View as Markdown

Description

Returns the TradingHours object for the specified Trading Hours template name, such as “CME US Index Futures RTH”

Method Return Value

A TradingHours object representing the specified Trading Hours template name.

Syntax

Get(string name)

Parameters

ParameterDescription
nameThe name of the desired TradingHours object to return

Examples

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