public class MetatraderDeal extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetatraderDeal.DealEntryType
Deal entry type.
|
static class |
MetatraderDeal.DealReason
Deal execution reason.
|
static class |
MetatraderDeal.DealType
Deal type.
|
| Modifier and Type | Field and Description |
|---|---|
Double |
accountCurrencyExchangeRate
Current exchange rate of account currency into account base currency (USD if you
did not override it), or
null |
String |
brokerTime
Time the deal was conducted at, in broker timezone, YYYY-MM-DD HH:mm:ss.SSS format
|
String |
clientId
Client-assigned id or
null. |
String |
comment
Deal comment or
null. |
Double |
commission
Deal commission or
null |
MetatraderDeal.DealEntryType |
entryType
Deal entry type or
null |
String |
id
Deal id (ticket number)
|
Integer |
magic
Deal magic number or
null, identifies the EA which initiated the deal |
String |
orderId
Id of order the deal relates to or
null |
String |
originalComment
Deal original comment or
null (present if possible to restore original comment from history) |
String |
platform
Platform id (mt4 or mt5)
|
String |
positionId
Id of position the deal relates to or
null |
Double |
price
The price the deal was conducted at or
null |
double |
profit
Deal profit
|
MetatraderDeal.DealReason |
reason
Optional deal execution reason or
null |
Double |
swap
Deal swap or
null |
String |
symbol
Symbol deal relates to or
null |
IsoTime |
time
Time the deal was conducted at
|
MetatraderDeal.DealType |
type
Deal type
|
Boolean |
updatePending
Flag indicating that deal client id and original comment was not identified yet and will be
updated in a future synchronization packet, or
null |
Double |
volume
Deal volume or
null |
| Constructor and Description |
|---|
MetatraderDeal() |
public String id
public MetatraderDeal.DealType type
public MetatraderDeal.DealEntryType entryType
nullpublic String symbol
nullpublic Integer magic
null, identifies the EA which initiated the dealpublic IsoTime time
public String brokerTime
public Double volume
nullpublic Double price
nullpublic Double commission
nullpublic Double swap
nullpublic double profit
public String positionId
nullpublic String orderId
nullpublic String comment
null. The sum of the line lengths of the comment and the clientId must be less than
or equal to 26. For more information see https://metaapi.cloud/docs/client/clientIdUsage/public String originalComment
null (present if possible to restore original comment from history)public String clientId
null. The id value can be assigned when submitting a trade and will be present
on position, history orders and history deals related to the trade. You can use this field to bind your
trades to objects in your application and then track trade progress. The sum of the line lengths of the
comment and the clientId must be less than or equal to 26. For more information see
https://metaapi.cloud/docs/client/clientIdUsage/public String platform
public Boolean updatePending
nullpublic MetatraderDeal.DealReason reason
nullpublic Double accountCurrencyExchangeRate
nullCopyright © 2022. All rights reserved.