Class Leg
Provides methods and properties for managing underlying contracts of a multiple-contract Instrument
Inheritance
Object
Leg
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: tt_net_sdk
Assembly: tt-net-api.dll
Syntax
public class Leg
Remarks
A Leg object represents a tradable Instrument that is part of a multi-legged Instrument. For contracts, such as spreads or strategies, a single instrument comprises multiple underlying contracts with an implied relationship between them. For example the ES 1xSep21: -1xDec21 spread contains two underlying contracts: one Sep21 leg and one Dec21 leg. Each of these contracts is an Instrument representing the child leg of the spread.
Properties
Instrument
Declaration
public Instrument Instrument { get; }
Property Value
Type | Description |
---|---|
Instrument |
OptionCode
Declaration
public int? OptionCode { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Price
Declaration
public decimal? Price { get; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
QuantityRatio
Declaration
public int QuantityRatio { get; }
Property Value
Type | Description |
---|---|
Int32 |