Class OrderInternal
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
An order record (MT5 OrderInternal): pending or market, working or historical.
public sealed class OrderInternal
- Inheritance
-
OrderInternal
- Inherited Members
Properties
- BaseDigits
Symbol digits (same as Digits).
- Comment
Order comment.
- ContractSize
Symbol contract size (from the account's catalog).
- DealTicket
The deal this order produced (its first execution), 0 while nothing executed. Resolved from the deals the API holds (every deal since connecting, the seed window, and the window of a history download).
- Digits
Symbol digits (from the account's catalog).
- ExecutionTime
Unix seconds of execution/cancellation, else 0.
- ExecutionTimeAsDateTime
Time of execution/cancellation (UTC), default while working.
- ExpertId
Magic number.
- ExpirationTime
Unix seconds of expiry (Specified TIF), else 0.
- ExpirationTimeAsDateTime
ViiSync extra: expiry (UTC) for a Specified time in force, else null.
- ExpirationType
Time in force.
- FillPolicy
Filling policy.
- FilledLots
ViiSync extra: filled volume, lots. Not set by this version (0).
- HistoryTime
Unix ms when the order reached a terminal state (0 while working).
- Id
The order's ticket string from the server, else the order id as text.
- Login
Account login.
- Lots
Volume, lots.
- OpenPrice
Activation price (the order price; the STOP price for a stop-limit).
- OpenTime
Unix seconds of placement.
- OpenTimeAsDateTime
Time of placement (UTC).
- OpenTimeMs
Unix ms of placement.
- OpenTimeMsAsDateTime
Time of placement (UTC).
- PlacedType
Who or what placed the order (ORDER_REASON).
- PositionTicket
ViiSync extra: the position the order opened or closed (0 for a working pending order).
- Price
Fill price for an executed market order, else the order price.
- ProfitRate
Profit conversion rate. Not set by ViiSync (1).
- Reason
ViiSync extra: the raw reason word from the server.
- RequestLots
Requested volume, lots (the same as Lots in ViiSync).
- RequestVolume
Requested volume, MT5 units (the same as Volume in ViiSync).
- State
Order state.
- StopLimitPrice
The LIMIT price of a stop-limit order.
- StopLoss
SL price (0 = none).
- Symbol
Symbol name.
- TakeProfit
TP price (0 = none).
- Ticket
Alias of TicketNumber.
- TicketNumber
Order ticket (ViiSync order id).
- Type
Order type.
- Volume
Volume, MT5 units (1e-8 lot).
Methods
- AreEquals(OrderInternal)
True when ticket, state, price, SL, TP and volume are equal.
- IsAssociativeDealOrder()
An order that exists only to carry a deal (a synthesised close order).
- IsBuyOrder()
True for any buy-side type.
- IsLimitOrder()
True for BuyLimit/SellLimit.
- IsStopLimitOrder()
True for BuyStopLimit/SellStopLimit.
- IsStopOrder()
True for BuyStop/SellStop.
- IsTradeOrder()
True for a market Buy/Sell order.