Show / Hide Table of Contents

Struct InstrumentKey

Implements
IEquatable<InstrumentKey>
IComparable<InstrumentKey>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: tt_net_sdk
Assembly: tt-net-api.dll
Syntax
public struct InstrumentKey : IEquatable<InstrumentKey>, IComparable<InstrumentKey>

Constructors

InstrumentKey(ulong)

Declaration
public InstrumentKey(ulong instrumentId)
Parameters
Type Name Description
ulong instrumentId

InstrumentKey(MarketId, ProductType, string, string)

Declaration
public InstrumentKey(MarketId marketId, ProductType productType, string productName, string alias)
Parameters
Type Name Description
MarketId marketId
ProductType productType
string productName
string alias

InstrumentKey(ProductKey, string)

Declaration
public InstrumentKey(ProductKey productKey, string alias)
Parameters
Type Name Description
ProductKey productKey
string alias

InstrumentKey(ProductKey, string, ulong)

Declaration
public InstrumentKey(ProductKey productKey, string alias, ulong instrumentId)
Parameters
Type Name Description
ProductKey productKey
string alias
ulong instrumentId

Fields

Empty

Declaration
public static InstrumentKey Empty
Field Value
Type Description
InstrumentKey

Properties

Alias

Declaration
public string Alias { get; }
Property Value
Type Description
string

InstrumentId

Declaration
public ulong InstrumentId { get; }
Property Value
Type Description
ulong

IsAggregator

Declaration
public bool IsAggregator { get; }
Property Value
Type Description
bool

IsAutospreader

Declaration
public bool IsAutospreader { get; }
Property Value
Type Description
bool

MarketId

Declaration
public MarketId MarketId { get; }
Property Value
Type Description
MarketId

ProductKey

Declaration
public ProductKey ProductKey { get; }
Property Value
Type Description
ProductKey

Methods

Equals(object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
object other
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

Equals(InstrumentKey)

Declaration
public bool Equals(InstrumentKey rhs)
Parameters
Type Name Description
InstrumentKey rhs
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

IsEmpty(InstrumentKey)

Declaration
public static bool IsEmpty(InstrumentKey key)
Parameters
Type Name Description
InstrumentKey key
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

operator ==(InstrumentKey, InstrumentKey)

Declaration
public static bool operator ==(InstrumentKey lhs, InstrumentKey rhs)
Parameters
Type Name Description
InstrumentKey lhs
InstrumentKey rhs
Returns
Type Description
bool

operator !=(InstrumentKey, InstrumentKey)

Declaration
public static bool operator !=(InstrumentKey lhs, InstrumentKey rhs)
Parameters
Type Name Description
InstrumentKey lhs
InstrumentKey rhs
Returns
Type Description
bool

Implements

IEquatable<T>
IComparable<T>
In this article
Back to top