NinjaScript > Language Reference > Data > Instrument >

Expiry

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

Returns the expiration date of a futures contract.

 

Property Value

A DateTime structure representing the expiration date of a futures contract.

 

Syntax

Instrument.Expiry

 

Additional Access Information
This property can be accessed without a null reference check in the OnBarUpdate() event handler. When the OnBarUpdate() event is triggered, there will always be an Instrument object. Should you wish to access this property elsewhere, check for null reference first. e.g. if (Instrument != null)