Class MetatraderDeal


  • public class MetatraderDeal
    extends Object
    MetaTrader deal
    • Field Detail

      • id

        public String id
        Deal id (ticket number)
      • symbol

        public String symbol
        Symbol deal relates to or null
      • magic

        public Integer magic
        Deal magic number or null, identifies the EA which initiated the deal
      • time

        public IsoTime time
        Time the deal was conducted at
      • volume

        public Double volume
        Deal volume or null
      • price

        public Double price
        The price the deal was conducted at or null
      • commission

        public Double commission
        Deal commission or null
      • swap

        public Double swap
        Deal swap or null
      • profit

        public double profit
        Deal profit
      • positionId

        public String positionId
        Id of position the deal relates to or null
      • orderId

        public String orderId
        Id of order the deal relates to or null
      • comment

        public String comment
        Deal comment or 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/
      • originalComment

        public String originalComment
        Deal original comment or null (present if possible to restore original comment from history)
      • clientId

        public String clientId
        Client-assigned id or 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/
      • 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, or null
    • Constructor Detail

      • MetatraderDeal

        public MetatraderDeal()