InstrumentType
<< Click to Display Table of Contents >> InstrumentType |
Returns the type of instrument.
An InstrumentType representing the type of an instrument.
Possible values are:
InstrumentType.Future
InstrumentType.Stock
InstrumentType.Index
InstrumentType.Forex
InstrumentType.Cfd
InstrumentType.Cryptocurrency
Instrument.MasterInstrument.InstrumentType
if (Instrument.MasterInstrument.InstrumentType == InstrumentType.Future) { // Do something } else { // Do something else } |