Class OrderProfile
Provides properties and methods for creating an order to submit
Inheritance
Object
OrderProfile
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, 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
Action
Declaration
public OrderAction Action { get; set; }
Property Value
ApplicationId
Declaration
public string ApplicationId { get; }
Property Value
BuySell
Declaration
public BuySell BuySell { get; set; }
Property Value
ClearingAccountOverride
Declaration
public string ClearingAccountOverride { get; set; }
Property Value
ClientOrderId
Declaration
public ulong ClientOrderId { get; }
Property Value
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
ExpireDate
Declaration
public ulong ExpireDate { get; set; }
Property Value
GiveUp
Declaration
public string GiveUp { get; set; }
Property Value
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
IsOnHold
Declaration
public bool IsOnHold { get; set; }
Property Value
IsQueueHolder
Declaration
public bool IsQueueHolder { get; set; }
Property Value
IsSniper
Declaration
public bool IsSniper { get; set; }
Property Value
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
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
OrderTag
Declaration
public string OrderTag { get; set; }
Property Value
OrderTagDefaults
Declaration
public OrderTagDefaults OrderTagDefaults { get; set; }
Property Value
OrderTagDefaultsName
Declaration
public string OrderTagDefaultsName { get; set; }
Property Value
OrderType
Declaration
public OrderType OrderType { get; set; }
Property Value
Organization
Declaration
public string Organization { get; }
Property Value
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
ReverseSpread
Declaration
public ReverseSpread ReverseSpread { get; set; }
Property Value
SenderLocation
Declaration
public string SenderLocation { get; }
Property Value
Side
Declaration
public OrderSide Side { get; set; }
Property Value
SiteOrderKey
Declaration
public string SiteOrderKey { get; }
Property Value
StopPrice
Declaration
public Price StopPrice { get; set; }
Property Value
SubUserId
Declaration
public string SubUserId { get; set; }
Property Value
Text
Declaration
public string Text { get; set; }
Property Value
TextA
Declaration
public string TextA { get; set; }
Property Value
TextB
Declaration
public string TextB { get; set; }
Property Value
TextC
Declaration
public string TextC { get; set; }
Property Value
TextTT
Declaration
public string TextTT { get; set; }
Property Value
TimeInForce
Declaration
public TimeInForce TimeInForce { get; set; }
Property Value
TimeSent
Declaration
public DateTime TimeSent { get; }
Property Value
Type |
Description |
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
UserParameters
Declaration
public IReadOnlyDictionary<string, object> UserParameters { get; set; }
Property Value
Type |
Description |
IReadOnlyDictionary<String, Object> |
|
UserTag
Declaration
public string UserTag { get; set; }
Property Value
Methods
CreateNewOrderProfile()
Declaration
public OrderProfile CreateNewOrderProfile()
Returns
Dispose()
Declaration
FinalizeCancelMsg(ref String)
Declaration
public bool FinalizeCancelMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
String |
errorMsg |
|
Returns
FinalizeChangeMsg(ref String)
Declaration
public bool FinalizeChangeMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
String |
errorMsg |
|
Returns
FinalizeNewOrderSingleMsg(ref String)
Declaration
public bool FinalizeNewOrderSingleMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
String |
errorMsg |
|
Returns
FinalizeSPQMsg(ref String)
Declaration
public bool FinalizeSPQMsg(ref string errorMsg)
Parameters
Type |
Name |
Description |
String |
errorMsg |
|
Returns
LegAccount(Int32)
Declaration
public Account LegAccount(int legIdx)
Parameters
Type |
Name |
Description |
Int32 |
legIdx |
|
Returns
ResetOrderId()
Declaration
public string ResetOrderId()
Returns
SetLegAccount(Int32, Account)
Declaration
public void SetLegAccount(int legIdx, Account ai)
Parameters
Type |
Name |
Description |
Int32 |
legIdx |
|
Account |
ai |
|
SetLegAccountName(Int32, String)
Declaration
public void SetLegAccountName(int legIdx, string acctName)
Parameters
Type |
Name |
Description |
Int32 |
legIdx |
|
String |
acctName |
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
System.Object.ToString()
Implements
System.IDisposable