ContractGetTradeDate(DateTime) Method

Calculate and return the current trading day.

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public DateTime GetTradeDate(
	DateTime pdTime
)

Parameters

pdTime  DateTime
The datetime to get the trade date for.

Return Value

DateTime
The trade date for this contract for the specified time.

Remarks

Trading holidays, such as New Years Day, will only be taken into account when the date specified is in the current or upcoming week.

See Also