ContractGetTradeDate(DateTime) Method
Calculate and return the current trading day.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public DateTime GetTradeDate(
DateTime pdTime
)
Public Function GetTradeDate (
pdTime As DateTime
) As DateTime
- pdTime DateTime
- The datetime to get the trade date for.
DateTime The trade date for this contract for the specified time.
Trading holidays, such as New Years Day, will only be taken into account when the date specified is in the current or upcoming week.