Class LegList
Provides methods and properties to access underlying contracts for a parent contract
Inheritance
Object
LegList
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 LegList : IEnumerable<Leg>, IEnumerable
Remarks
The LegList class contains the Leg Instruments that represent the underlying contracts of a multi-legged Instrument, such as a spread or strategy contract. The LegList collection allows you to iterate over the legs in the collection using standard .NET constructs, such as a foreach loop.
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Declaration
public Leg this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
Leg |
Methods
GetEnumerator()
Declaration
public IEnumerator<Leg> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Leg> |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable