Class Order
Defines properties that provide information about a specific order working in the market
Inheritance
System.Object
Order
Implements
System.IComparable<
Order>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: tt-net-api.dll
Syntax
public class Order : IEquatable<Order>, IComparable<Order>
Fields
PreviousAction
Declaration
public OrderAction PreviousAction
Field Value
Properties
Account
Declaration
public Account Account { get; }
Property Value
AccountId
Declaration
public ulong AccountId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
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
Algo
Declaration
public Algo Algo { get; }
Property Value
AlgoInstumentId
Declaration
public ulong AlgoInstumentId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
AlgoServerId
Declaration
public string AlgoServerId { get; }
Property Value
Type |
Description |
System.String |
|
ApplicationId
Declaration
public string ApplicationId { get; }
Property Value
Type |
Description |
System.String |
|
AverageFillPrice
Declaration
public Price AverageFillPrice { get; }
Property Value
BrokerKey
Declaration
public BrokerKey BrokerKey { get; }
Property Value
BuySell
Declaration
public BuySell BuySell { get; }
Property Value
CanceledQuantity
Declaration
public Quantity CanceledQuantity { get; }
Property Value
ClearingAccount
Declaration
public string ClearingAccount { get; }
Property Value
Type |
Description |
System.String |
|
ClearingAccountName
Declaration
public string ClearingAccountName { get; }
Property Value
Type |
Description |
System.String |
|
ClearingAccountOverride
Declaration
public string ClearingAccountOverride { get; }
Property Value
Type |
Description |
System.String |
|
Client
Declaration
public string Client { get; }
Property Value
Type |
Description |
System.String |
|
ClientIP
Declaration
public uint ClientIP { get; }
Property Value
Type |
Description |
System.UInt32 |
|
ClientOrderId
Declaration
public ulong ClientOrderId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
CoLocation
Declaration
public MarketId CoLocation { get; }
Property Value
CommodityDerivIndicator
Declaration
public MiFIDBooleanEnum CommodityDerivIndicator { get; }
Property Value
CompanyKey
Declaration
public CompanyKey CompanyKey { get; }
Property Value
ConnectionId
Declaration
public ulong ConnectionId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
CurrentUserId
Declaration
public ulong CurrentUserId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
CustOrderCapacity
Declaration
public CustOrderCapacity CustOrderCapacity { get; }
Property Value
CxlRejectReason
Declaration
public CxlRejReason CxlRejectReason { get; }
Property Value
DisclosedQuantity
Declaration
public Quantity DisclosedQuantity { get; }
Property Value
ExchangeClOrderId
Declaration
public string ExchangeClOrderId { get; }
Property Value
Type |
Description |
System.String |
|
ExchangeOrderId
Declaration
public string ExchangeOrderId { get; }
Property Value
Type |
Description |
System.String |
|
ExchangeStamp
Declaration
public string ExchangeStamp { get; }
Property Value
Type |
Description |
System.String |
|
ExchangeTransactionNumber
Declaration
public string ExchangeTransactionNumber { get; }
Property Value
Type |
Description |
System.String |
|
ExchTransactionTime
Declaration
public DateTime ExchTransactionTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
ExecutionDecision
Declaration
public string ExecutionDecision { get; }
Property Value
Type |
Description |
System.String |
|
ExecutionType
Declaration
public ExecType ExecutionType { get; }
Property Value
ExpireDate
Declaration
public ulong ExpireDate { get; }
Property Value
Type |
Description |
System.UInt64 |
|
FillQuantity
Declaration
public Quantity FillQuantity { get; }
Property Value
GiveUp
Declaration
public string GiveUp { get; }
Property Value
Type |
Description |
System.String |
|
GroupId
Declaration
public string GroupId { get; }
Property Value
Type |
Description |
System.String |
|
HoldOrderFeatures
Declaration
public HoldOrderFeatures HoldOrderFeatures { get; }
Property Value
Instrument
Declaration
public Instrument Instrument { get; }
Property Value
InstrumentDetails
Declaration
public InstrumentDetails InstrumentDetails { get; }
Property Value
InstrumentKey
Declaration
public InstrumentKey InstrumentKey { get; }
Property Value
InvestmentDecision
Declaration
public string InvestmentDecision { get; }
Property Value
Type |
Description |
System.String |
|
IsAutomated
Declaration
public bool IsAutomated { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsChild
Declaration
public bool IsChild { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExchangeOrder
Declaration
public bool IsExchangeOrder { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExpired
Declaration
public bool IsExpired { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsHoldInRejectedOrder
Declaration
public bool IsHoldInRejectedOrder { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsOnHold
Declaration
public bool IsOnHold { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsParent
Declaration
public bool IsParent { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsQueueHolder
Declaration
public bool IsQueueHolder { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsRejected
Declaration
public bool IsRejected { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsReload
Declaration
public bool IsReload { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsSniper
Declaration
public bool IsSniper { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsStaged
Declaration
public bool IsStaged { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsSynthetic
Declaration
public bool IsSynthetic { get; }
Property Value
Type |
Description |
System.Boolean |
|
LimitPrice
Declaration
public Price LimitPrice { get; }
Property Value
LiquidityProvision
Declaration
public MiFIDBooleanEnum LiquidityProvision { get; }
Property Value
Message
Declaration
public string Message { get; }
Property Value
Type |
Description |
System.String |
|
MinimumQuantity
Declaration
public Quantity MinimumQuantity { get; }
Property Value
OCReceived
Time in UTC the Order Connector received the outbound order.
Declaration
public DateTime OCReceived { get; }
Property Value
Type |
Description |
System.DateTime |
|
OCSentToExchange
Time in UTC the Order Connector sent the order to the exchange.
Order times are in the following order:
Sent time the SDK App sent the order
OCReceived time the OC received the order (this is after risk checking)
OCSentToExchange time the OC sent the order to the exchange
ExchTransactionTime time of transaction reported by the exchange
Received time the OC received the response from the exchange
Processed time the exchange response left the OC
SDKProcess time the SDK processed the order response message
Declaration
public DateTime OCSentToExchange { get; }
Property Value
Type |
Description |
System.DateTime |
|
OmaParentOrderId
Declaration
public string OmaParentOrderId { get; }
Property Value
Type |
Description |
System.String |
|
OrderCapacity
Declaration
public OrderCapacity OrderCapacity { get; }
Property Value
OrderId
Declaration
public Guid OrderId { get; }
Property Value
Type |
Description |
System.Guid |
|
OrderQuantity
Declaration
public Quantity OrderQuantity { get; }
Property Value
OrderRestrictionType
Declaration
public OrderRestrictionType OrderRestrictionType { get; }
Property Value
OrderSequence
Declaration
public ulong OrderSequence { get; }
Property Value
Type |
Description |
System.UInt64 |
|
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
OrderTag
Declaration
public string OrderTag { get; }
Property Value
Type |
Description |
System.String |
|
OrderTagDefaultsName
Declaration
public string OrderTagDefaultsName { get; }
Property Value
Type |
Description |
System.String |
|
OrderType
Declaration
public OrderType OrderType { get; }
Property Value
OrdStatus
Declaration
public OrdStatus OrdStatus { get; }
Property Value
Organization
Declaration
public string Organization { get; }
Property Value
Type |
Description |
System.String |
|
Origination
Declaration
public OrderOrigination Origination { get; }
Property Value
OwnerAlgoId
Declaration
public ulong OwnerAlgoId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
ParentOrderId
Declaration
public string ParentOrderId { get; }
Property Value
Type |
Description |
System.String |
|
PositionEffect
Declaration
public PositionEffect PositionEffect { get; }
Property Value
Processed
Time in UTC the Order Connector sent the order response.
Declaration
public DateTime Processed { get; }
Property Value
Type |
Description |
System.DateTime |
|
Received
Time in UTC the Order Connector received the order response from the exchange.
Declaration
public DateTime Received { get; }
Property Value
Type |
Description |
System.DateTime |
|
RejectReason
Declaration
public OrderRejectReason RejectReason { get; }
Property Value
RejectSource
Declaration
public RejectSource RejectSource { get; }
Property Value
Declaration
public string RelatedOrderKey { get; }
Property Value
Type |
Description |
System.String |
|
ReverseSpread
Declaration
public ReverseSpread ReverseSpread { get; }
Property Value
Route
Declaration
public string Route { get; }
Property Value
Type |
Description |
System.String |
|
SDKProcess
Time in UTC the .NET SDK processed the order reponse.
Declaration
public DateTime SDKProcess { get; }
Property Value
Type |
Description |
System.DateTime |
|
SenderLocation
Declaration
public string SenderLocation { get; }
Property Value
Type |
Description |
System.String |
|
Sent
Time in UTC the client application sent the order.
Declaration
public DateTime Sent { get; }
Property Value
Type |
Description |
System.DateTime |
|
Side
Declaration
public OrderSide Side { get; }
Property Value
SiteOrderKey
Declaration
public string SiteOrderKey { get; }
Property Value
Type |
Description |
System.String |
|
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
StatusHistory
Declaration
public StatusHistory StatusHistory { get; }
Property Value
StopPrice
Declaration
public Price StopPrice { get; }
Property Value
SubUserId
Declaration
public string SubUserId { get; }
Property Value
Type |
Description |
System.String |
|
SyntheticOrderKey
Declaration
public string SyntheticOrderKey { get; }
Property Value
Type |
Description |
System.String |
|
SyntheticParentInstrumentId
Declaration
public ulong SyntheticParentInstrumentId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
SyntheticStatus
Declaration
public SynthStatus SyntheticStatus { get; }
Property Value
SyntheticType
Declaration
public SyntheticOrderType SyntheticType { get; }
Property Value
Text
Declaration
public string Text { get; }
Property Value
Type |
Description |
System.String |
|
TextA
Declaration
public string TextA { get; }
Property Value
Type |
Description |
System.String |
|
TextB
Declaration
public string TextB { get; }
Property Value
Type |
Description |
System.String |
|
TextC
Declaration
public string TextC { get; }
Property Value
Type |
Description |
System.String |
|
TextTT
Declaration
public string TextTT { get; }
Property Value
Type |
Description |
System.String |
|
TimeInForce
Declaration
public TimeInForce TimeInForce { get; }
Property Value
TraderId
Declaration
public string TraderId { get; }
Property Value
Type |
Description |
System.String |
|
TradeSessionId
Declaration
public TradingSessionSubId TradeSessionId { get; }
Property Value
TradingStrategy
Declaration
public TradingStrategy TradingStrategy { get; }
Property Value
TriggerPrice
Declaration
public Price TriggerPrice { get; }
Property Value
TTAccountName
Declaration
public string TTAccountName { get; }
Property Value
Type |
Description |
System.String |
|
UniqueTransactionId
Declaration
public string UniqueTransactionId { get; }
Property Value
Type |
Description |
System.String |
|
UserDisconnectAction
Declaration
public UserDisconnectAction UserDisconnectAction { get; }
Property Value
UserId
Declaration
public ulong UserId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
UserName
Declaration
public string UserName { get; }
Property Value
Type |
Description |
System.String |
|
UserParameters
Declaration
public IReadOnlyDictionary<string, object> UserParameters { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> |
|
UserTag
Declaration
public string UserTag { get; }
Property Value
Type |
Description |
System.String |
|
WorkingQuantity
Declaration
public Quantity WorkingQuantity { get; }
Property Value
Methods
CreateNewOrderProfile()
Declaration
public OrderProfile CreateNewOrderProfile()
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Equals(Order)
Declaration
public bool Equals(Order other)
Parameters
Type |
Name |
Description |
Order |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetOrderProfile()
Declaration
public OrderProfile GetOrderProfile()
Returns
GetPartyRole(PartyRole)
Declaration
public string GetPartyRole(PartyRole role)
Parameters
Returns
Type |
Description |
System.String |
|
LegAccount(Int32)
Declaration
public Account LegAccount(int legIdx)
Parameters
Type |
Name |
Description |
System.Int32 |
legIdx |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.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
Returns
Operators
Equality(Order, Order)
Declaration
public static bool operator ==(Order left, Order right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Order, Order)
Declaration
public static bool operator !=(Order left, Order right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IComparable<Order>.CompareTo(Order)
Declaration
int IComparable<Order>.CompareTo(Order other)
Parameters
Type |
Name |
Description |
Order |
other |
|
Returns
Type |
Description |
System.Int32 |
|
Implements
System.IEquatable<T>
System.IComparable<T>