Show / Hide Table of Contents

Class Order

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

Fields

PreviousAction

Declaration
public OrderAction PreviousAction
Field Value
Type Description
OrderAction

Properties

Account

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

AccountId

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

Action7x

Declaration
[Obsolete("Action7x property is provided for backwards compatibility only and will be removed in a future release. Please use OrdStatus instead. ")]
public OrderAction Action7x { get; }
Property Value
Type Description
OrderAction

Algo

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

AlgoInstumentId

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

AlgoServerId

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

ApplicationId

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

AverageFillPrice

Declaration
public Price AverageFillPrice { get; }
Property Value
Type Description
Price

BrokerKey

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

BuySell

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

CanceledQuantity

Declaration
public Quantity CanceledQuantity { get; }
Property Value
Type Description
Quantity

ClearingAccount

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

ClearingAccountName

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

ClearingAccountOverride

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

Client

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

ClientIP

Declaration
public uint ClientIP { get; }
Property Value
Type Description
uint

ClientOrderId

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

CoLocation

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

CommodityDerivIndicator

Declaration
public MiFIDBooleanEnum CommodityDerivIndicator { get; }
Property Value
Type Description
MiFIDBooleanEnum

CompanyKey

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

ConnectionId

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

CurrentUserId

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

CustOrderCapacity

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

CxlRejectReason

Declaration
public CxlRejReason CxlRejectReason { get; }
Property Value
Type Description
CxlRejReason

DisclosedQuantity

Declaration
public Quantity DisclosedQuantity { get; }
Property Value
Type Description
Quantity

ExchTransactionTime

Time (local time) of transaction reported by the exchange.

Declaration
public DateTime ExchTransactionTime { get; }
Property Value
Type Description
DateTime

ExchangeClOrderId

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

ExchangeOrderId

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

ExchangeStamp

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

ExchangeTransactionNumber

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

ExecutionDecision

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

ExecutionType

Declaration
public ExecType ExecutionType { get; }
Property Value
Type Description
ExecType

ExpireDate

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

ExtendedStagedOrderStatus

Extended status of the staged order.

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

FillQuantity

Declaration
public Quantity FillQuantity { get; }
Property Value
Type Description
Quantity

GiveUp

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

GroupId

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

HoldOrderFeatures

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

Instrument

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

InstrumentDetails

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

InstrumentKey

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

InvestmentDecision

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

IsAutomated

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

IsChild

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

IsExchangeOrder

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

IsExpired

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

IsHoldInRejectedOrder

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

IsOnHold

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

IsParent

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

IsQueueHolder

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

IsRejected

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

IsReload

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

IsSniper

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

IsStaged

If an order is a Staged order .

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

IsSynthetic

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

LimitPrice

Declaration
public Price LimitPrice { get; }
Property Value
Type Description
Price

LiquidityProvision

Declaration
public MiFIDBooleanEnum LiquidityProvision { get; }
Property Value
Type Description
MiFIDBooleanEnum

Message

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

MinimumQuantity

Declaration
public Quantity MinimumQuantity { get; }
Property Value
Type Description
Quantity

OCReceived

Time (local time) when the Order Connector received the outbound order.

Declaration
public DateTime OCReceived { get; }
Property Value
Type Description
DateTime

OCSentToExchange

Time (local time) when the Order Connector sent the order to the exchange.

Declaration
public DateTime OCSentToExchange { get; }
Property Value
Type Description
DateTime

OmaParentOrderId

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

OrdStatus

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

OrderCapacity

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

OrderId

Declaration
public Guid OrderId { get; }
Property Value
Type Description
Guid

OrderQuantity

Declaration
public Quantity OrderQuantity { get; }
Property Value
Type Description
Quantity

OrderRestrictionType

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

OrderSequence

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

OrderSource

Reflects the value of source on the most recent request of this order. This is not neccessarily the initial source.

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

OrderTag

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

OrderTagDefaultsName

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

OrderType

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

Organization

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

Origination

Declaration
public OrderOrigination Origination { get; }
Property Value
Type Description
OrderOrigination

OwnerAlgoId

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

ParentOrderId

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

PendingChangePrice

Declaration
public Price PendingChangePrice { get; }
Property Value
Type Description
Price

PendingChangeQty

In stager/oms workflow it is possible for a replace to be initiated and not immediately completed. The action will complete only after it is explicitly approved, these Pending fields capture that transient state.

Declaration
public Quantity PendingChangeQty { get; }
Property Value
Type Description
Quantity

PendingClientOrderId

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

PositionEffect

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

Processed

Time (local time) when the Order Connector sent the order response.

Declaration
public DateTime Processed { get; }
Property Value
Type Description
DateTime

Received

Time (local time) the Order Connector received the order response from the exchange.

Declaration
public DateTime Received { get; }
Property Value
Type Description
DateTime

RejectReason

Declaration
public OrderRejectReason RejectReason { get; }
Property Value
Type Description
OrderRejectReason

RejectSource

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

RelatedOrderKey

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

ReverseSpread

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

Route

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

SDKProcess

Time (local time) the .NET SDK processed the order reponse.

Declaration
public DateTime SDKProcess { get; }
Property Value
Type Description
DateTime

SenderLocation

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

Sent

Order times are in the following order : Sent local time the SDK App sent the order OCReceived local time the OC received the order (this is after risk checking) OCSentToExchange local time the OC sent the order to the exchange ExchTransactionTime local time of transaction reported by the exchange Received local time the OC received the response from the exchange Processed local time the exchange response left the OC SDKProcess local time the SDK processed the order response message

Declaration
public DateTime Sent { get; }
Property Value
Type Description
DateTime

Side

Declaration
public OrderSide Side { get; }
Property Value
Type Description
OrderSide

SiteOrderKey

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

StagedOrderMessage

Message text associated with the staged order.

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

StagedOrderStatus

Claim status of the staged order.

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

Status7x

Declaration
[Obsolete("Status7x property is provided for backwards compatibility only and will be removed in a future release. Please use IsRejected, OrdStatus property and OrdStatusTo7xStatus method. ")]
public OrderStatus Status7x { get; }
Property Value
Type Description
OrderStatus

StatusHistory

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

StopPrice

Declaration
public Price StopPrice { get; }
Property Value
Type Description
Price

SubUserId

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

SyntheticOrderKey

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

SyntheticParentInstrumentId

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

SyntheticStatus

Declaration
public SynthStatus SyntheticStatus { get; }
Property Value
Type Description
SynthStatus

SyntheticType

Declaration
public SyntheticOrderType SyntheticType { get; }
Property Value
Type Description
SyntheticOrderType

TTAccountName

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

Text

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

TextA

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

TextB

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

TextC

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

TextTT

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

TimeInForce

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

TradeSessionId

Declaration
public TradingSessionSubId TradeSessionId { get; }
Property Value
Type Description
TradingSessionSubId

TraderId

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

TradingStrategy

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

TriggerPrice

Declaration
public Price TriggerPrice { get; }
Property Value
Type Description
Price

UniqueTransactionId

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

UserDisconnectAction

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

UserId

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

UserName

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

UserParameters

Declaration
public IReadOnlyDictionary<string, object> UserParameters { get; }
Property Value
Type Description
IReadOnlyDictionary<string, object>

UserTag

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

WorkingQuantity

Declaration
public Quantity WorkingQuantity { get; }
Property Value
Type Description
Quantity

Methods

CreateNewOrderProfile()

Declaration
public OrderProfile CreateNewOrderProfile()
Returns
Type Description
OrderProfile

Equals(object)

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

Equals(Order)

Declaration
public bool Equals(Order other)
Parameters
Type Name Description
Order other
Returns
Type Description
bool

GetHashCode()

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

GetOrderProfile()

Declaration
public OrderProfile GetOrderProfile()
Returns
Type Description
OrderProfile

GetPartyRole(PartyRole)

Declaration
public string GetPartyRole(PartyRole role)
Parameters
Type Name Description
PartyRole role
Returns
Type Description
string

LegAccount(int)

Declaration
public Account LegAccount(int legIdx)
Parameters
Type Name Description
int legIdx
Returns
Type Description
Account

ToString()

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

TradeState7x(OrdStatus)

Declaration
[Obsolete("TradeState7x property is provided for backwards compatibility only and will be removed in a future release Please use OrdStatus instead. ")]
public TradeState TradeState7x(OrdStatus ordStatus)
Parameters
Type Name Description
OrdStatus ordStatus
Returns
Type Description
TradeState

Operators

operator ==(Order, Order)

Declaration
public static bool operator ==(Order left, Order right)
Parameters
Type Name Description
Order left
Order right
Returns
Type Description
bool

operator !=(Order, Order)

Declaration
public static bool operator !=(Order left, Order right)
Parameters
Type Name Description
Order left
Order right
Returns
Type Description
bool

Implements

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