Class MetatraderTrade
- java.lang.Object
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderTrade
-
public class MetatraderTrade extends Object
MetaTrader trade (see https://metaapi.cloud/docs/client/models/metatraderTrade/)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetatraderTrade.ActionTypeAction type enum
-
Field Summary
Fields Modifier and Type Field Description MetatraderTrade.ActionTypeactionTypeAction typeStringclientIdClient-assigned id ornull.StringcommentOrder comment ornull.IntegermagicMagic number (expert adviser id) ornullDoubleopenPriceOrder limit or stop price ornullStringorderIdOrder id ornull, must be specified for order modification commandsStringpositionIdPosition id ornull, must be specified for position modification commandsDoublestopLossStop loss price ornullStringsymbolSymbol to trade ornullDoubletakeProfitTake profit price ornullDoublevolumeOrder volume ornull
-
Constructor Summary
Constructors Constructor Description MetatraderTrade()
-
-
-
Field Detail
-
actionType
public MetatraderTrade.ActionType actionType
Action type
-
symbol
public String symbol
Symbol to trade ornull
-
volume
public Double volume
Order volume ornull
-
openPrice
public Double openPrice
Order limit or stop price ornull
-
stopLoss
public Double stopLoss
Stop loss price ornull
-
takeProfit
public Double takeProfit
Take profit price ornull
-
orderId
public String orderId
Order id ornull, must be specified for order modification commands
-
positionId
public String positionId
Position id ornull, must be specified for position modification commands
-
comment
public String comment
Order 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/
-
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/
-
magic
public Integer magic
Magic number (expert adviser id) ornull
-
-