Class DealInternal
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
A deal — one immutable execution-ledger row (MT5 DealInternal).
public sealed class DealInternal
- Inheritance
-
DealInternal
- Inherited Members
Properties
- Comment
Deal comment.
- Commission
Commission charged on the deal.
- ContractSize
Symbol contract size (from the account's catalog).
- Digits
Symbol digits (from the account's catalog).
- Direction
Entry: in, out, in/out (reversal) or out-by.
- ExpertId
Magic number of the order.
- Fee
Fee charged on the deal.
- HistoryTime
Unix ms of the deal (same as OpenTimeMs).
- Id
The deal's ticket string from the server, else the deal id as text.
- Login
Account login.
- Lots
Volume, lots.
- MarketAsk
ViiSync extra: the market ask at execution.
- MarketBid
ViiSync extra: the market bid at execution.
- MoneyDigits
Money digits of the deposit currency. Not set by ViiSync (2).
- OpenTime
Unix seconds of the deal.
- OpenTimeAsDateTime
Time of the deal (UTC).
- OpenTimeMs
Unix ms of the deal.
- OrderTicket
The order that produced the deal.
- PlacedType
Who or what caused the deal (DEAL_REASON).
- PositionTicket
The position the deal belongs to.
- Price
Execution price.
- Profit
Realised profit, deposit currency (the amount for a balance operation).
- ProfitRate
Profit conversion rate. Not set by ViiSync (1); Profit is already in the deposit currency.
- Reason
ViiSync extra: the raw reason word from the server (e.g. "SL", "TP", "SO", "Expert").
- StopLoss
SL recorded on the deal (DEAL_SL; 0 = none).
- Swap
Swap realised by the deal.
- Symbol
Symbol name (empty for balance operations).
- TakeProfit
TP recorded on the deal (DEAL_TP; 0 = none).
- TicketNumber
Deal ticket (ViiSync deal id).
- Type
Deal type (buy, sell, or a balance-operation type).
- Volume
Volume, MT5 units (1e-8 lot).
Methods
- AreEquals(DealInternal)
True when ticket, volume, price, profit, commission and swap are equal.