public class NewMetatraderAccountDto extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
application
Application name to connect the account to.
|
String |
baseCurrency
3-character ISO currency code of the account base currency.
|
int |
copyFactoryResourceSlots
Number of CopyFactory 2 resource slots to allocate to account.
|
List<MetatraderAccountDto.CopyFactoryRole> |
copyFactoryRoles
Account roles for CopyFactory2 application, or
null |
List<MetatraderAccountDto.Extension> |
extensions
API extensions
|
String |
login
MetaTrader account number
|
long |
magic
MetaTrader magic to place trades using
|
Boolean |
manualTrades
Flag indicating if trades should be placed as manual trades, or
null. |
Map<String,Object> |
metadata
Extra information which can be stored together with your account
|
String |
name
MetaTrader account human-readable name in the MetaApi app
|
String |
password
MetaTrader account password.
|
String |
platform
Platform id (mt4 or mt5), or
null |
String |
provisioningProfileId
Id of the account's provisioning profile
|
Double |
quoteStreamingIntervalInSeconds
Quote streaming interval in seconds, or
null. |
String |
region
Region id to deploy account at, or
null. |
String |
reliability
Used to increase the reliability of the account.
|
Integer |
resourceSlots
Number of resource slots to allocate to account, or
null. |
boolean |
riskManagementApiEnabled
Flag indicating that risk management API should be enabled on account.
|
String |
server
MetaTrader server which hosts the account
|
Integer |
slippage
Default trade slippage in points.
|
String |
symbol
Any MetaTrader symbol your broker provides historical market data for, or
null. |
List<String> |
tags
MetaTrader account tags, or
null. |
String |
type
Account type, can be cloud, cloud-g1, cloud-g2 or self-hosted.
|
| Constructor and Description |
|---|
NewMetatraderAccountDto() |
public String name
public String type
public String login
public String password
public String server
public String platform
nullpublic String provisioningProfileId
public String application
public long magic
public Boolean manualTrades
null. Default is false.public Double quoteStreamingIntervalInSeconds
null. Set to 0 in order to receive quotes on each tick.
Default value is 2.5 seconds. Intervals less than 2.5 seconds are supported only for G2public List<MetatraderAccountDto.Extension> extensions
public Map<String,Object> metadata
public String reliability
public String baseCurrency
public List<MetatraderAccountDto.CopyFactoryRole> copyFactoryRoles
nullpublic Integer resourceSlots
null. Allocating extra resource slots
results in better account performance under load which is useful for some applications. E.g. if you have many
accounts copying the same strategy via CopyFactory API, then you can increase resourceSlots to get a lower trade
copying latency. Please note that allocating extra resource slots is a paid option. Default is 1public String symbol
null. This value should be
specified for G1 accounts only and only in case your MT account fails to connect to brokerpublic int copyFactoryResourceSlots
public String region
null. One of returned by the /users/current/regions endpointpublic Integer slippage
null, system internal setting
will be used which we believe is reasonable for most casespublic boolean riskManagementApiEnabled
Copyright © 2022. All rights reserved.