Class OrderProfile
Provides properties and methods for creating an order to submit
Inheritance
System.Object
OrderProfile
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: tt-net-api.dll
Syntax
public class OrderProfile : IDisposable
Constructors
OrderProfile(Instrument)
Declaration
public OrderProfile(Instrument instrument)
Parameters
OrderProfile(Instrument, Instrument)
Declaration
public OrderProfile(Instrument instrument, Instrument algoInstrument)
Parameters
Properties
Account
Declaration
public Account Account { get; set; }
Property Value
AccountName
Declaration
public string AccountName { get; set; }
Property Value
Type |
Description |
System.String |
|
Action
Declaration
public OrderAction Action { get; set; }
Property Value
ApplicationId
Declaration
public string ApplicationId { get; }
Property Value
Type |
Description |
System.String |
|
BuySell
Declaration
public BuySell BuySell { get; set; }
Property Value
ClearingAccountOverride
Declaration
public string ClearingAccountOverride { get; set; }
Property Value
Type |
Description |
System.String |
|
ClientOrderId
Declaration
public ulong ClientOrderId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
CoLocation
Declaration
public MarketId CoLocation { get; set; }
Property Value
DisclosedQuantity
Declaration
public Quantity DisclosedQuantity { get; set; }
Property Value
ExchangeClOrderId
Declaration
public string ExchangeClOrderId { get; }
Property Value
Type |
Description |
System.String |
|
ExpireDate
Declaration
public ulong ExpireDate { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
GiveUp
Declaration
public string GiveUp { get; set; }
Property Value
Type |
Description |
System.String |
|
Instrument
Declaration
public Instrument Instrument { get; }
Property Value
InstrumentDetails
Declaration
public InstrumentDetails InstrumentDetails { get; }
Property Value
IsAutomated
Declaration
public bool IsAutomated { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsOnHold
Declaration
public bool IsOnHold { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsQueueHolder
Declaration
public bool IsQueueHolder { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsSniper
Declaration
public bool IsSniper { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LeaveOnRestart
Applicable to Server Side SDK, this property, if set to false, will configure the order
to be removed by the SDK when this application restarts. It is used in conjunction with the
TTAPIOptions.SDKInstanceId to remove only the orders set be the previous instance of the application
that set the LeaveOnRestart to false.
Declaration
public bool LeaveOnRestart { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LimitPrice
Declaration
public Price LimitPrice { get; set; }
Property Value
MinimumQuantity
Declaration
public Quantity MinimumQuantity { get; set; }
Property Value
OrderQuantity
Declaration
public Quantity OrderQuantity { get; set; }
Property Value
OrderStimulusTime
Declaration
public ulong OrderStimulusTime { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
OrderTag
Declaration
public string OrderTag { get; set; }
Property Value
Type |
Description |
System.String |
|
OrderTagDefaults
Declaration
public OrderTagDefaults OrderTagDefaults { get; set; }
Property Value
OrderTagDefaultsName
Declaration
public string OrderTagDefaultsName { get; set; }
Property Value
Type |
Description |
System.String |
|
OrderType
Declaration
public OrderType OrderType { get; set; }
Property Value
Organization
Declaration
public string Organization { get; }
Property Value
Type |
Description |
System.String |
|
OriginalOrder
Declaration
public Order OriginalOrder { get; }
Property Value
PositionEffect
Declaration
public PositionEffect PositionEffect { get; set; }
Property Value
PriceRecvTime
Declaration
public ulong PriceRecvTime { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
ReverseSpread
Declaration
public ReverseSpread ReverseSpread { get; set; }
Property Value
SenderLocation
Declaration
public string SenderLocation { get; }
Property Value
Type |
Description |
System.String |
|
Side
Declaration
public OrderSide Side { get; set; }
Property Value
SiteOrderKey
Declaration
public string SiteOrderKey { get; }
Property Value
Type |
Description |
System.String |
|
StopPrice
Declaration
public Price StopPrice { get; set; }
Property Value
SubUserId
Declaration
public string SubUserId { get; set; }
Property Value
Type |
Description |
System.String |
|
Text
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
TextA
Declaration
public string TextA { get; set; }
Property Value
Type |
Description |
System.String |
|
TextB
Declaration
public string TextB { get; set; }
Property Value
Type |
Description |
System.String |
|
TextC
Declaration
public string TextC { get; set; }
Property Value
Type |
Description |
System.String |
|
TextTT
Declaration
public string TextTT { get; set; }
Property Value
Type |
Description |
System.String |
|
TimeInForce
Declaration
public TimeInForce TimeInForce { get; set; }
Property Value
TimeSent
Declaration
public DateTime TimeSent { get; }
Property Value
Type |
Description |
System.DateTime |
|
TradingStrategy
Declaration
public TradingStrategy TradingStrategy { get; set; }
Property Value
TriggerPrice
Declaration
public Price TriggerPrice { get; set; }
Property Value
UserDisconnectAction
Declaration
public UserDisconnectAction UserDisconnectAction { get; set; }
Property Value
UserName
Declaration
public string UserName { get; }
Property Value
Type |
Description |
System.String |
|
UserParameters
Declaration
public IReadOnlyDictionary<string, object> UserParameters { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> |
|
UserTag
Declaration
public string UserTag { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CreateNewOrderProfile()
Declaration
public OrderProfile CreateNewOrderProfile()
Returns
Dispose()
Declaration
FinalizeCancelMsg(ref String)
Declaration
public bool FinalizeCancelMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
System.String |
errorMsg |
|
Returns
Type |
Description |
System.Boolean |
|
FinalizeChangeMsg(ref String)
Declaration
public bool FinalizeChangeMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
System.String |
errorMsg |
|
Returns
Type |
Description |
System.Boolean |
|
FinalizeNewOrderSingleMsg(ref String)
Declaration
public bool FinalizeNewOrderSingleMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
System.String |
errorMsg |
|
Returns
Type |
Description |
System.Boolean |
|
FinalizeSPQMsg(ref String)
Declaration
public bool FinalizeSPQMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
System.String |
errorMsg |
|
Returns
Type |
Description |
System.Boolean |
|
LegAccount(Int32)
Declaration
public Account LegAccount(int legIdx)
Parameters
Type |
Name |
Description |
System.Int32 |
legIdx |
|
Returns
ResetOrderId()
Declaration
public string ResetOrderId()
Returns
Type |
Description |
System.String |
|
SetLegAccount(Int32, Account)
Declaration
public void SetLegAccount(int legIdx, Account ai)
Parameters
Type |
Name |
Description |
System.Int32 |
legIdx |
|
Account |
ai |
|
SetLegAccountName(Int32, String)
Declaration
public void SetLegAccountName(int legIdx, string acctName)
Parameters
Type |
Name |
Description |
System.Int32 |
legIdx |
|
System.String |
acctName |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.IDisposable