Class Instrument
Encapsulates a tradable instrument for an Exchange
Inheritance
Object
Instrument
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Assembly: tt-net-api.dll
Syntax
public class Instrument : IComparable<Instrument>
Fields
Empty
Represents an invalid instrument
Declaration
public static readonly Instrument Empty
Field Value
Properties
CouponRate
Declaration
public decimal? CouponRate { get; }
Property Value
Type |
Description |
Nullable<Decimal> |
|
InstrumentDetails
Declaration
public InstrumentDetails InstrumentDetails { get; }
Property Value
Key
Declaration
public InstrumentKey Key { get; }
Property Value
MaturityDate
Declaration
public Date? MaturityDate { get; }
Property Value
Type |
Description |
Nullable<Date> |
|
Name
Declaration
public string Name { get; }
Property Value
Product
Declaration
public Product Product { get; }
Property Value
Strike
Declaration
public decimal? Strike { get; }
Property Value
Type |
Description |
Nullable<Decimal> |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
System.Object.Equals(System.Object)
Equals(Instrument)
Declaration
public bool Equals(Instrument rhs)
Parameters
Returns
Declaration
public string GetFormattedName(InstrumentNameFormat format)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
System.Object.GetHashCode()
GetLegs()
Declaration
Returns
GetSpreadDetails()
Declaration
public SpreadDetails GetSpreadDetails()
Returns
IsEmpty()
Declaration
Returns
IsNullOrEmpty(Instrument)
Declaration
public static bool IsNullOrEmpty(Instrument i)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
System.Object.ToString()
Explicit Interface Implementations
IComparable<Instrument>.CompareTo(Instrument)
Declaration
int IComparable<Instrument>.CompareTo(Instrument other)
Parameters
Returns
Implements
System.IComparable<T>