Class CopyFactoryAccountUpdate
- java.lang.Object
-
- cloud.metaapi.sdk.clients.copy_factory.models.CopyFactoryAccountUpdate
-
- Direct Known Subclasses:
CopyFactoryAccount
public class CopyFactoryAccountUpdate extends Object
CopyFactory account update
-
-
Field Summary
Fields Modifier and Type Field Description StringcloseOnlyOptional setting which instructs the application not to open new positions. by-symbol means that it is still allowed to open new positions with a symbol equal to the symbol of an existing strategy position (can be used to gracefuly exit strategies trading in netting mode or placing a series of related trades per symbol).StringconnectionIdId of the MetaApi MetaTrader account this copy trading account is connected toDoublemaxLeverageOptional setting indicating maxumum leverage allowed when opening a new positions, ornull.DoubleminTradeAmountOptional value of minimal trade size allowed, expressed in amount of account currency, ornull.StringnameAccount human-readable nameList<String>phoneNumbersOptional phone numbers to send sms notifications to, ornull.DoublereservedMarginFractionOptional fraction of reserved margin to reduce a risk of margin call, ornull.List<CopyFactoryStrategySubscription>subscriptionsStrategy subscriptions
-
Constructor Summary
Constructors Constructor Description CopyFactoryAccountUpdate()
-
-
-
Field Detail
-
name
public String name
Account human-readable name
-
connectionId
public String connectionId
Id of the MetaApi MetaTrader account this copy trading account is connected to
-
reservedMarginFraction
public Double reservedMarginFraction
Optional fraction of reserved margin to reduce a risk of margin call, ornull. Default is to reserve no margin. We recommend using maxLeverage setting instead. Specified as a fraction of balance thus the value is usually greater than 1
-
phoneNumbers
public List<String> phoneNumbers
Optional phone numbers to send sms notifications to, ornull. Leave empty to receive no sms notifications
-
minTradeAmount
public Double minTradeAmount
Optional value of minimal trade size allowed, expressed in amount of account currency, ornull. Can be useful if your broker charges a fixed fee per transaction so that you can skip small trades with high broker commission rates. Default is 100
-
closeOnly
public String closeOnly
Optional setting which instructs the application not to open new positions. by-symbol means that it is still allowed to open new positions with a symbol equal to the symbol of an existing strategy position (can be used to gracefuly exit strategies trading in netting mode or placing a series of related trades per symbol). One of by-position, by-symbol or leave empty to disable this setting.
-
maxLeverage
public Double maxLeverage
Optional setting indicating maxumum leverage allowed when opening a new positions, ornull. Any trade which results in a higher leverage will be discarded.
-
subscriptions
public List<CopyFactoryStrategySubscription> subscriptions
Strategy subscriptions
-
-