Class Order
Order.
Implements
Namespace: StockSharp.BusinessEntities
Assembly: StockSharp.BusinessEntities.dll
Syntax
[DisplayNameLoc("Str504")]
[DescriptionLoc("Str516", false)]
public class Order : NotifiableObject, IExtendableEntity
Constructors
Order()
Создать Order.
Declaration
public Order()
Properties
AveragePrice
Средняя цена исполнения.
Declaration
public Nullable<Decimal> AveragePrice { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
Balance
Order contracts balance.
Declaration
[DisplayNameLoc("Str130")]
[DescriptionLoc("Str131", false)]
public Decimal Balance { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
BoardId
Идентификатор заявки электронной площадки. Используется, если Id или StringId содержат идентификаторы брокерской системы.
Declaration
[DisplayNameLoc("Str117")]
[DescriptionLoc("Str118", false)]
public string BoardId { get; set; }
Property Value
Type | Description |
---|---|
String |
BrokerCode
Broker firm code.
Declaration
[DisplayNameLoc("Broker")]
[DescriptionLoc("Str2619", false)]
public string BrokerCode { get; set; }
Property Value
Type | Description |
---|---|
String |
ClientCode
Client code assigned by the broker.
Declaration
[DisplayNameLoc("ClientCode")]
[DescriptionLoc("ClientCodeDesc", false)]
public string ClientCode { get; set; }
Property Value
Type | Description |
---|---|
String |
Comment
Placed order comment.
Declaration
[DisplayNameLoc("Str135")]
[DescriptionLoc("Str136", false)]
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
String |
Commission
Commission (broker, exchange etc.).
Declaration
[DisplayNameLoc("Str159")]
[DescriptionLoc("Str160", false)]
public Nullable<Decimal> Commission { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
CommissionCurrency
Валюта комиссии. Может быть
Declaration
public string CommissionCurrency { get; set; }
Property Value
Type | Description |
---|---|
String |
Condition
Order condition (e.g., stop- and algo- orders parameters).
Declaration
[DisplayNameLoc("Str154")]
[DescriptionLoc("Str155", false)]
[CategoryLoc("Str156")]
public OrderCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
OrderCondition |
Currency
Trading security currency.
Declaration
[DisplayNameLoc("Currency")]
[DescriptionLoc("Str382", false)]
public Nullable<CurrencyTypes> Currency { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Ecng.Common.CurrencyTypes> |
DerivedOrder
Биржевая заявка, которая была создана стоп-заявкой при активации условия (null, если стоп-условие еще не было активировано).
Declaration
[DisplayNameLoc("Str532")]
[DescriptionLoc("Str533", false)]
[CategoryLoc("Str156")]
public Order DerivedOrder { get; set; }
Property Value
Type | Description |
---|---|
Order |
Direction
Order side (buy or sell).
Declaration
[DisplayNameLoc("Str128")]
[DescriptionLoc("Str129", false)]
public Sides Direction { get; set; }
Property Value
Type | Description |
---|---|
Sides |
ExpiryDate
Время экспирации заявки. По умолчанию равно null, что означает действие заявки до отмены (GTC).
Declaration
[DisplayNameLoc("Str141")]
[DescriptionLoc("Str142", false)]
public Nullable<DateTimeOffset> ExpiryDate { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTimeOffset> |
Remarks
Если значение равно null, то заявка выставляется до отмены. Иначе, указывается конкретный срок.
ExtensionInfo
Extended information.
Declaration
[DisplayNameLoc("ExtendedInfo")]
[DescriptionLoc("Str427", false)]
public IDictionary<string, object> ExtensionInfo { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<String, Object> |
Remarks
Required when extra information is stored in the program.
Id
Order ID.
Declaration
[DisplayNameLoc("Str361")]
[DescriptionLoc("OrderIdString", true)]
public Nullable<long> Id { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
IsManual
Is order manual.
Declaration
[DisplayNameLoc("Manual")]
[DescriptionLoc("IsOrderManual", false)]
public Nullable<bool> IsManual { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
IsMargin
Is margin enabled.
Declaration
[DisplayNameLoc("Margin")]
[DescriptionLoc("IsMargin", false)]
public Nullable<bool> IsMargin { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
IsMarketMaker
Is the order of market-maker.
Declaration
[DisplayNameLoc("MarketMaker")]
[DescriptionLoc("MarketMakerOrder", true)]
public Nullable<bool> IsMarketMaker { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
IsSystem
Is a system trade.
Declaration
[DisplayNameLoc("Str139")]
[DescriptionLoc("Str140", false)]
public Nullable<bool> IsSystem { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
LastChangeTime
Time of last order change (Cancellation, Fill).
Declaration
[DisplayNameLoc("Str528")]
[DescriptionLoc("Str529", false)]
public DateTimeOffset LastChangeTime { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
LatencyCancellation
Time taken to cancel an order.
Declaration
public Nullable<TimeSpan> LatencyCancellation { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
LatencyEdition
Time taken to edit an order.
Declaration
public Nullable<TimeSpan> LatencyEdition { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
LatencyRegistration
Time taken to register an order.
Declaration
public Nullable<TimeSpan> LatencyRegistration { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
Leverage
Margin leverage.
Declaration
[DisplayNameLoc("Leverage")]
[DescriptionLoc("Str261", false)]
public Nullable<int> Leverage { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
LocalTime
Локальное время последнего изменения заявки (отмена, исполнение).
Declaration
[DisplayNameLoc("Str530")]
[DescriptionLoc("Str531", false)]
public DateTimeOffset LocalTime { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Messages
Messages for order (created by the trading system when registered, changed or cancelled).
Declaration
[DisplayNameLoc("Str526")]
[DescriptionLoc("Str527", false)]
public ISynchronizedCollection<string> Messages { get; }
Property Value
Type | Description |
---|---|
Ecng.Collections.ISynchronizedCollection<String> |
MinVolume
Минимальный объем заявки, который может быть исполнен.
Declaration
public Nullable<Decimal> MinVolume { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
Portfolio
Portfolio, in which the order is being traded.
Declaration
[DisplayNameLoc("Portfolio")]
[DescriptionLoc("Str525", false)]
public Portfolio Portfolio { get; set; }
Property Value
Type | Description |
---|---|
Portfolio |
PositionEffect
Position effect.
Declaration
public Nullable<OrderPositionEffects> PositionEffect { get; set; }
Property Value
Type | Description |
---|---|
Nullable<OrderPositionEffects> |
PostOnly
Post-only order.
Declaration
public Nullable<bool> PostOnly { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Price
Order price.
Declaration
[DisplayNameLoc("Price")]
[DescriptionLoc("OrderPrice", false)]
public Decimal Price { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
Security
Security, for which an order is being placed.
Declaration
[DisplayNameLoc("Security")]
[DescriptionLoc("Str524", false)]
public Security Security { get; set; }
Property Value
Type | Description |
---|---|
Security |
SeqNum
Sequence number.
Declaration
public long SeqNum { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Remarks
Zero means no information.
Slippage
Slippage in trade price.
Declaration
[DisplayNameLoc("Str163")]
[DescriptionLoc("Str164", false)]
public Nullable<Decimal> Slippage { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
State
Order state.
Declaration
[DisplayNameLoc("State")]
[DescriptionLoc("Str134", false)]
public OrderStates State { get; set; }
Property Value
Type | Description |
---|---|
OrderStates |
Status
Системный статус заявки.
Declaration
public Nullable<long> Status { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
StrategyId
Strategy id.
Declaration
public string StrategyId { get; set; }
Property Value
Type | Description |
---|---|
String |
StringId
Order ID (as string, if electronic board does not use numeric order ID representation).
Declaration
[DisplayNameLoc("Str521")]
[DescriptionLoc("OrderIdStringDesc", false)]
public string StringId { get; set; }
Property Value
Type | Description |
---|---|
String |
Time
Order placing time on exchange.
Declaration
[DisplayNameLoc("Str522")]
[DescriptionLoc("Str523", false)]
public DateTimeOffset Time { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
TimeInForce
Limit order time in force.
Declaration
[DisplayNameLoc("TimeInForce")]
[DescriptionLoc("Str232", false)]
public Nullable<TimeInForce> TimeInForce { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeInForce> |
TransactionId
Идентификатор транзакции. Автоматически устанавливается при вызове метода RegisterOrder(Order).
Declaration
[DisplayNameLoc("Transaction")]
[DescriptionLoc("TransactionId", true)]
public long TransactionId { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Type
Order type.
Declaration
[DisplayNameLoc("Str132")]
[DescriptionLoc("Str133", false)]
public Nullable<OrderTypes> Type { get; set; }
Property Value
Type | Description |
---|---|
Nullable<OrderTypes> |
UserOrderId
User's order ID.
Declaration
[DisplayNameLoc("Str165")]
[DescriptionLoc("Str166", false)]
public string UserOrderId { get; set; }
Property Value
Type | Description |
---|---|
String |
VisibleVolume
Visible quantity of contracts in order.
Declaration
[DisplayNameLoc("VisibleVolume")]
[DescriptionLoc("Str127", false)]
public Nullable<Decimal> VisibleVolume { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
Volume
Number of contracts in the order.
Declaration
[DisplayNameLoc("Volume")]
[DescriptionLoc("OrderVolume", false)]
public Decimal Volume { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
Yield
Yield.
Declaration
public Nullable<Decimal> Yield { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Decimal> |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |