Work with trading accounts
{
"instruments": [
{
"symbol": "string", //the name of the symbol
"symbol_group": "string", //the name of symbol group
"digits": 0, //the number of decimal places in the price of the symbol.
"contract_size": 0, //the contract size of the symbol
"stops_level": 0, //the price band, within which placing stop orders is not allowed
"calc_mode": 0, //the mode of margin and profit calculation
"trade_mode": 0, //the symbol trading mode
"volume_min": 0, //the minimum volume of trade operations for the symbol.
"volume_max": 0, //the maximum volume of trade operations for the symbol
"volume_step": 0, //the volume change step for trade operations for the symbol.
"hedged_margin": 0, //the value of the hedged margin
"maintenance_margin": 0, //the size of the maintenance margin
"initial_margin_rate_buy": 0, //the initial margin rate for orders of the specified type (buy)
"initial_margin_rate_sell": 0, //the initial margin rate for orders of the specified type (sell)
"maintenance_margin_rate_buy": 0, //the maintenance margin rate for orders of the specified type (buy)
"maintenance_margin_rate_sell": 0, //the maintenance margin rate for orders of the specified type (sell)
"tick_size": 0, //the size of one tick of the symbol
"tick_value": 0, //the price of one tick of the symbol
"swap_mode": 0, //the swap calculation mode for the symbol
"swap_long": 0, //the swap size for long positions
"swap_short": 0, //the swap size for short positions
"swap_3day": 0, //the triple swap day
"sessions": {
"additionalProp1": {
"trade": [
{
"open": "00:00",
"close": "24:00"
}
],
"quote": [
{
"open": "00:00",
"close": "24:00"
}
]
},
"additionalProp2": {
"trade": [
{
"open": "00:00",
"close": "24:00"
}
],
"quote": [
{
"open": "00:00",
"close": "24:00"
}
]
},
"additionalProp3": {
"trade": [
{
"open": "00:00",
"close": "24:00"
}
],
"quote": [
{
"open": "00:00",
"close": "24:00"
}
]
}
}
}
]
}Create accounts with different types
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!an account was successfully created
bad arguments in the request, account is not available for creation
method is not able to make new account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!an account was successfully created
bad arguments in the request, account is not available for creation
method is not able to make new account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!minimum amount of trading balance to start copy strategy, default 1000
1000min copy ratio available for the strategy, default 1
1max copy ratio available for the strategy, default 10
10commission charged from successful sessions, default 10%
10an account was successfully created
bad arguments in the request, account is not available for creation
method is not able to make new account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountpassword for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!master account id that strategy will be copied
ec2930bb-c200-4a2d-9f1f-3e938e39de54copy ratio to apply for deals from shared trading strategy, -1 means auto calculation from balances proportion
-1binary flag to activate copying for next session
truean account was successfully created
bad arguments in the request, account is not available for creation
method is not able to make new account
Delete an account
Update account parameters
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!an account was successfully updated
method is not able to update account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!an account was successfully updated
method is not able to update account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountleverage for the trading account
100password for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!minimum amount of trading balance to start copy strategy, default 1000
1000min copy ratio available for the strategy, default 1
1max copy ratio available for the strategy, default 10
10commission charged from successful sessions, default 10%
10an account was successfully updated
method is not able to update account
external id reference for account
ec2930bb-c200-4a2d-9f1f-3e938e39de54name of the group
demo\rockwest\rw502_rwstagedemo_usdname of the account
demo accountpassword for MT to login as a trader
!StrongTrader!password for MT to login as an investor
!StrongInvestor!master account id that strategy will be copied
ec2930bb-c200-4a2d-9f1f-3e938e39de54copy ratio to apply for deals from shared trading strategy, -1 means auto calculation from balances proportion
-1binary flag to activate copying for next session
truean account was successfully updated
method is not able to update account
Get transactions
Get a list of transactions for the account
unix time in ms
unix time in ms
sorting type
list of transactions
bad arguments in the request, {accounttype} or {accountid} is not available
Description of parameters
For MT4 plugin the parameter type can be:
type can be:For MT5 plugin the parameter type can be:
type can be:Get detail information about specified transaction
Getting balance information
Change balance
Last updated