Instrument

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Instruments >

Instrument

Previous page Return to chapter overview Next page

Definition

A tradable symbol.  Represents an instance of a Master Instrument

 

Warning: The properties in this class should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded

 

 

Methods and Properties

Exchange

Exchange of the current instrument

Expiry

Expiration date of the futures contract

FullName

Full name of the instrument

GetInstrument()

Returns an Instrument object by the master instrument name configured in the database.  

MasterInstrument

An instrument's configuration settings.  These are settings and properties which are defined in the Instrument window.

FundmentalData

Instrument thread specific FundamentalData events

MarketData

Instrument thread specific MarketData events

MarketDepth

Instrument thread specific MarketDepth events

Dispatcher

A Dispatcher used for subscribing to Instrument related events See Multi-Threading Considerations