Click or drag to resize

Order Class

Order.
Inheritance Hierarchy
SystemObject
  NotifiableObject
    StockSharp.BusinessEntitiesOrder

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
[SerializableAttribute]
public class Order : NotifiableObject, IExtendableEntity

The Order type exposes the following members.

Constructors
  NameDescription
Public methodOrder
Initializes a new instance of the Order.
Top
Properties
  NameDescription
Public propertyBalance
Order contracts balance.
Public propertyBoardId
Board order id. Uses in case of Id and StringId is a brokerage system ids.
Public propertyBrokerCode
Broker firm code.
Public propertyClientCode
Client code assigned by the broker.
Public propertyComment
Placed order comment.
Public propertyCommission
Commission (broker, exchange etc.).
Public propertyCommissionCurrency
Commission currency. Can be .
Public propertyCondition
Order condition (e.g., stop- and algo- orders parameters).
Public propertyCurrency
Trading security currency.
Public propertyDerivedOrder Obsolete.
Exchange order that was created by the stop-order when the condition is activated ( if a stop condition has not been activated).
Public propertyDirection
Order side (buy or sell).
Public propertyExpiryDate
Order expiry time. The default is , which mean (GTC).
Public propertyExtensionInfo
Extended information on order.
Public propertyId
Order ID.
Public propertyIsManual
Is order manual.
Public propertyIsMargin
Is margin enabled.
Public propertyIsMarketMaker
Is the order of market-maker.
Public propertyIsSystem
Is a system trade.
Public propertyLastChangeTime
Time of last order change (Cancellation, Fill).
Public propertyLatencyCancellation
Time taken to cancel an order.
Public propertyLatencyRegistration
Time taken to register an order.
Public propertyLocalTime
Last order change local time (Cancellation, Fill).
Public propertyMessages
Messages for order (created by the trading system when registered, changed or cancelled).
Public propertyPortfolio
Portfolio, in which the order is being traded.
Public propertyPrice
Order price.
Public propertyRepoInfo
Information for REPO\REPO-M orders.
Public propertyRpsInfo
Information for Negotiate Deals Mode orders.
Public propertySecurity
Security, for which an order is being placed.
Public propertySlippage
Slippage in trade price.
Public propertyState
Order state.
Public propertyStatus
System order status.
Public propertyStringId
Order ID (as string, if electronic board does not use numeric order ID representation).
Public propertyTime
Order placing time on exchange.
Public propertyTimeInForce
Limit order time in force.
Public propertyTransactionId
Transaction ID. Automatically set when the RegisterOrder(Order) method called.
Public propertyType
Order type.
Public propertyUserOrderId
User's order ID.
Public propertyVisibleVolume
Visible quantity of contracts in order.
Public propertyVolume
Number of contracts in the order.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanged (Inherited from NotifiableObject.)
Protected methodNotifyChanging (Inherited from NotifiableObject.)
Public methodNotifyPropertyChanged (Inherited from NotifiableObject.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventPropertyChanged (Inherited from NotifiableObject.)
Public eventPropertyChanging (Inherited from NotifiableObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddValue
Add value into ExtensionInfo.
(Defined by ExtandableEntityHelper.)
Public Extension MethodCopyExtensionInfo
Copy extended info.
(Defined by Extensions.)
Public Extension MethodCreateCancelMessage
To create the message of cancelling old order.
(Defined by MessageConverterHelper.)
Public Extension MethodCreateRegisterMessage
To create the message of new order registration.
(Defined by MessageConverterHelper.)
Public Extension MethodCreateReplaceMessage(Order, SecurityId)Overloaded.
To create the message of replacing old order with new one.
(Defined by MessageConverterHelper.)
Public Extension MethodCreateReplaceMessage(Order, SecurityId, Order, Order, SecurityId)Overloaded.
To create the message of replacing pair of old orders to new ones.
(Defined by MessageConverterHelper.)
Public Extension MethodGetAveragePrice
To get weighted mean price of order matching.
(Defined by TraderHelper.)
Public Extension MethodGetClientId
To get the customer identifier.
(Defined by Extensions.)
Public Extension MethodGetLastTradePrice
To get the last trade price.
(Defined by Extensions.)
Public Extension MethodGetMatchedVolume
To calculate the implemented part of volume for order.
(Defined by TraderHelper.)
Public Extension MethodGetTraceId
To get the tracing-based order identifier.
(Defined by StrategyHelper.)
Public Extension MethodGetTrades
To get order trades.
(Defined by TraderHelper.)
Public Extension MethodGetValueT
Get value from ExtensionInfo.
(Defined by ExtandableEntityHelper.)
Public Extension MethodGetWhyHeld
To get the order retention reason.
(Defined by Extensions.)
Public Extension MethodIsCanceled
To check, whether the order was cancelled.
(Defined by TraderHelper.)
Public Extension MethodIsMatched
To check, is the order matched completely.
(Defined by TraderHelper.)
Public Extension MethodIsMatchedEmpty
To check, if no contract in order is implemented.
(Defined by TraderHelper.)
Public Extension MethodIsMatchedPartially
To check, is a part of volume is implemented in the order.
(Defined by TraderHelper.)
Public Extension MethodReRegisterClone
To create copy of the order for re-registration.
(Defined by TraderHelper.)
Public Extension MethodShrinkPrice
To cut the price for the order, to make it multiple of the minimal step, also to limit number of decimal places.
(Defined by TraderHelper.)
Public Extension MethodToMessage
To convert the order into message.
(Defined by MessageConverterHelper.)
Public Extension MethodWhenAllTrades
To create a rule for the event of all trades occurrence for the order.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCanceled
To create a rule for the order cancelling event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenCancelFailed
To create a rule for the event of unsuccessful order cancelling on exchange.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenChanged
To create a rule for the order change event.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenLossMore
To create a rule for the order's loss more on offset.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMatched
To create a rule for the event of order fully matching.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenNewTrade
To create a rule for the event of trade occurrence for the order.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenPartiallyMatched
To create a rule for the event of order partial matching.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenProfitMore
To create a rule for the order's profit more on offset.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenRegistered
To create a rule for the event of successful order registration on exchange.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenRegisterFailed
To create a for the event of order unsuccessful registration on exchange.
(Defined by MarketRuleHelper.)
Top
See Also