Class MetatraderDeal
- java.lang.Object
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderDeal
-
public class MetatraderDeal extends Object
MetaTrader deal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetatraderDeal.DealEntryTypeDeal entry type.static classMetatraderDeal.DealReasonDeal execution reason.static classMetatraderDeal.DealTypeDeal type.
-
Field Summary
Fields Modifier and Type Field Description StringclientIdClient-assigned id ornull.StringcommentDeal comment ornull.DoublecommissionDeal commission ornullMetatraderDeal.DealEntryTypeentryTypeDeal entry type ornullStringidDeal id (ticket number)IntegermagicDeal magic number ornull, identifies the EA which initiated the dealStringorderIdId of order the deal relates to ornullStringoriginalCommentDeal original comment ornull(present if possible to restore original comment from history)StringplatformPlatform id (mt4 or mt5)StringpositionIdId of position the deal relates to ornullDoublepriceThe price the deal was conducted at ornulldoubleprofitDeal profitMetatraderDeal.DealReasonreasonOptional deal execution reason ornullDoubleswapDeal swap ornullStringsymbolSymbol deal relates to ornullIsoTimetimeTime the deal was conducted atMetatraderDeal.DealTypetypeDeal typeBooleanupdatePendingFlag indicating that deal client id and original comment was not identified yet and will be updated in a future synchronization packet, ornullDoublevolumeDeal volume ornull
-
Constructor Summary
Constructors Constructor Description MetatraderDeal()
-
-
-
Field Detail
-
id
public String id
Deal id (ticket number)
-
type
public MetatraderDeal.DealType type
Deal type
-
entryType
public MetatraderDeal.DealEntryType entryType
Deal entry type ornull
-
symbol
public String symbol
Symbol deal relates to ornull
-
magic
public Integer magic
Deal magic number ornull, identifies the EA which initiated the deal
-
time
public IsoTime time
Time the deal was conducted at
-
volume
public Double volume
Deal volume ornull
-
price
public Double price
The price the deal was conducted at ornull
-
commission
public Double commission
Deal commission ornull
-
swap
public Double swap
Deal swap ornull
-
profit
public double profit
Deal profit
-
positionId
public String positionId
Id of position the deal relates to ornull
-
orderId
public String orderId
Id of order the deal relates to ornull
-
comment
public String comment
Deal comment ornull. 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/
-
originalComment
public String originalComment
Deal original comment ornull(present if possible to restore original comment from history)
-
clientId
public String clientId
Client-assigned id ornull. 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/
-
platform
public String platform
Platform id (mt4 or mt5)
-
updatePending
public Boolean updatePending
Flag indicating that deal client id and original comment was not identified yet and will be updated in a future synchronization packet, ornull
-
reason
public MetatraderDeal.DealReason reason
Optional deal execution reason ornull
-
-