The Instrument class
The Instrument class provides the data as it relates to a given tradable entity. Its members include:
// All of the detailed properties of an instrument
public InstrumentDetails InstrumentDetails;
// InstrumentKey struct
public tt_net_sdk.InstrumentKey Key;
// instrument’s name
public string Name;
// product information
public Product Product;
The InstrumentDetails class provides all of the detailed properties of an instrument. Some of its members include:
public decimal PointValue;
public DateTime MaturityDate;
public int MarketDepth;
public int ImpliedDepth;
public decimal DisplayFactor;
public int Precision;
public UInt64 Id;
public string Alias;
The InstrumentKey struct is a simple collection of the instrument’s descriptive information. Its constructors and members include:
// Constructors
public InstrumentKey(ProductKey productKey, string alias);
public InstrumentKey(MarketId marketId, ProductType productType, string productName, string alias);
public InstrumentKey(UInt64 instrumentId);
// TT’s identifier for this instrument
public InstrumentId InstrumentId;
// market id
public MarketId MarketId;
// ProductKey struct
public ProductKey ProductKey;
// instrument’s alias
public string Alias;
Note that the InstrumentId
is only populated if the instance is constructed as a result of a product fetch via the InstrumentCatalog or InstrumentLookup class.