• Home
  • Cockpit
  • How To
    • Get Started!
    • FAQs
    • Tutorials
    • Blog
    • Trade Copier API Documentation
  • Features
    • Why Duplikium?
    • Key Features
    • Supported Trading platforms
      • Supported Platforms Overview
      • MT4
      • MT5
      • cTrader
      • TradingView
      • FXCM
      • LMAX
      • DXTrade
      • Tradovate (Beta)
      • Fortex (Beta)
      • NinjaTrader (coming soon)
    • Screenshots
    • Videos
      • Video Tutorials
      • Video Reviews
    • Trade Copier Solutions
  • Pricing
    • Pricing Overview
    • Free Plan
    • Subscription Plan
    • Prepay Plan
    • Add-ons
Register Register for FREE Login
  • Home
  • Cockpit
  • How To
    • Get Started!
    • FAQs
    • Tutorials
    • Blog
    • Trade Copier API Documentation
  • Features
    • Why Duplikium?
    • Key Features
    • Supported Trading platforms
      • Supported Platforms Overview
      • MT4
      • MT5
      • cTrader
      • TradingView
      • FXCM
      • LMAX
      • DXTrade
      • Tradovate (Beta)
      • Fortex (Beta)
      • NinjaTrader (coming soon)
    • Screenshots
    • Videos
      • Video Tutorials
      • Video Reviews
    • Trade Copier Solutions
  • Pricing
    • Pricing Overview
    • Free Plan
    • Subscription Plan
    • Prepay Plan
    • Add-ons

Get a full list of your Copy Settings for a master, slave or template

URL: https://www.trade-copier.com/webservice/v4/settings/setSettings.php

Response: JSON response description

 

All fields are optional except id_slave or id_group

Field NameField TypeField Description
id_master string Unique identifier of the master account. Will be a default setting for all masters if empty
id_slave string Unique identifier of the slave account. Must be empty if template ID is set
id_group string Unique identifier of the template. Must be empty if slave ID is set
risk_factor_value float Value of the risk factor
risk_factor_type int Risk Factor type or not defined:
0: Auto Risk (Equity)
1: Auto Risk (Balance)
2: Auto Risk (Free Margin)
3: Multiplier (Notional)
4: Fixed Lot
5: Fixed Leverage (Equity)
6: Fixed Leverage (Balance)
7: Fixed Leverage (Free Margin)
10: Fixed Units
11. Multiplier(Lot)
order_side int -1 = sell only, 1 = buy only
max_order_size float Maximum order size
min_order_size float Minimum order size
copier_status int Status of the setting on the trade copier. -1 = close only, 0 = frozen, 1 = on, 2 = open only
symbol_master string Symbol on the master's broker. Must be set if symbol field is set
symbol string Symbol on the slave's broker. Must be set if symbol_master field is set
pending_order int Enable/disable copying on pending orders. 0 = off, 1 = on
stop_loss int 0 = off, 1 = on, 2 = on with updates
stop_loss_fixed_value float  
stop_loss_fixed_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
stop_loss_min_value float  
stop_loss_min_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
stop_loss_max_value float  
stop_loss_max_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
take_profit int 0 = off, 1 = on, 2 = on with updates
take_profit_fixed_value float  
take_profit_fixed_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
take_profit_min_value float  
take_profit_min_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
take_profit_max_value float  
take_profit_max_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
trailing_stop_value float  
trailing_stop_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
max_risk_value float  
max_risk_format int 0 = %, 1 = amount, 2 = pips, 3 = decimal
comment string  
max_slippage float Max slippage in pips
max delay float Max delay in seconds
force_min_round_up int  
round_down int  
split_order int  
price_improvement float Price improvement in pips
max_position_size_a float  
max_position_size_s float  
max_position_size_a_m float  
max_position_size_s_m float  
max_open_count_a int  
max_open_count_s int  
max_open_count_a_m int  
max_open_count_s_m int  
max_daily_order_count_a int  
max_daily_order_count_s int  
max_daily_order_count_a_m int  
max_daily_order_count_s_m int  
global_stop_loss int 0 = off, 1 = on
global_stop_loss_value float  
global_stop_loss_type int 0 = close only, 1 = sell out, 2 = freeze
global_take_profit int 0 = off, 1 = on
global_take_profit_value float  
global_take_profit_type int 0 = close only, 1 = sell out, 2 = freeze
stop_loss_offset_value float Optional positive or negative offset value to adjust the Stop Loss level.
stop_loss_offset_format int 0 = % of SL price, 1 = cash amount, 2 = pips, 3 = decimal, 4 = % of SL distance
take_profit_offset_value float Optional positive or negative offset value to adjust the Take Profit level.
take_profit_offset_format int 0 = % of SL price, 1 = cash amount, 2 = pips, 3 = decimal, 4 = % of SL distance
trailing_stop_value float Optional positive or negative offset value to adjust the Traing Stop
trailing_stop_format int 0 = % of Trailing Stop price, 1 = cash amount, 2 = pips, 3 = decimal, 4 = % of Trailing Stop distance

 

PHP example


<?php

	echo "<link rel='stylesheet' type='text/css' href='https://www.trade-copier.com/webservice/example.css'>";
	
	$url="https://www.trade-copier.com/webservice/v4/settings/setSettings.php";
	$headers =  array(
		'Content-Type: application/x-www-form-urlencoded',
		'Auth-Username: username',
		'Auth-Token: key',
	);

	// Open connection
	$ch = curl_init();

	// Setting the options
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, true);
	curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

	// Slave/Group Settings list to be added, updated or removed
	$settings = [
	  ['id_slave' => '29524', 'id_master' => '33934', 'risk_factor_value' => '0.11', 'risk_factor_type' => '3', 'max_order_size' => '1.23', 'copier_status' => '0'],
	  ['id_slave' => '29524', 'risk_factor_value' => '0.99', 'risk_factor_type' => '4', 'max_order_size' => '0.12', 'copier_status' => '1'],
	  ['id_group' => '4735', 'risk_factor_value' => '1.02', 'risk_factor_type' => '5', 'max_order_size' => '0.12'],
	];

	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($settings));
	
	// Execute request
	$json = json_decode(curl_exec($ch));

	// Close connection
	curl_close($ch);
	
	//If updated is successful, we use the getRiskFactors webservice to check the new value
	if(array_key_exists('success', $json))
	{
		echo $json->code."-".$json->success;
	}
	else
	{
		//This is an error message that can be access like this:
		//echo $json->code." ".$json->error;
		echo json_encode($json);
	}

?>
Duplikium Trade Copier
 

HOME

Register for FREE

Login

Cockpit

HOW TO

Get started!

Tutorials

FAQs

Blog

API Documentation

FEATURES

Why Duplikium?

Key Features

Screenshots

Video Tutorials

Video Reviews

Trade Copier Solutions

SUPPORTED PLATFORMS

MT4 Brokers

MT5 Brokers

cTrader Brokers

TradingView

FXCM

LMAX

DXTrade

Tradovate

Fortex (coming soon)

NinjaTrader (coming soon)

PRICING

Free Plan

Subscription Plan

Prepay Plan

Add-ons

 
MARGIN TRADING DISCLAIMER
Futures, forex and CFD's on margin trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. The high degree of leverage can work against you as well as for you. Risk capital is money that can be lost without jeopardizing ones’ financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. You should be aware of all the risks associated with futures, foreign exchange and CFD's trading, and seek advice from an independent financial advisor if you have any doubts.

SITE DISCLAIMER
Trades signals sent through this website are solely those of the customers quoted. They do not represent the opinions of Duplikium on whether to buy, sell or hold particular investments.
While Duplikium try to ensure that all of the information provided on this website is kept up-to-date and accurate, we accept no responsibility for any use made of the information provided. You agree not to hold Duplikium liable for decisions and trades that are based on information from this website. Duplikium cannot be held responsible for the software, broker or other issues that result in the failure to execute a trade command. It is inherent upon you, the client, to make sure you are aware of when trades have been taken, adjusted or closed.
The purchase, sale or advice regarding a particular investment can only be performed by a licensed Broker/Dealer. Neither our website nor our associates involved in the production and maintenance of these products or this website is a registered Broker/Dealer or Investment Advisor in any State or Federally-sanctioned jurisdiction. All purchasers of products referenced at this site are encouraged to consult with a licensed representative of their choice regarding any particular trade or trading strategy. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website.
Please note that the servers names listed on this website are not a recommendation nor an advertising made by Duplikium. Duplikium is totally independent and has no partnership with any brokers.You have to make your own due diligence when selecting a broker.

SOFTWARE DISCLAIMER
Although rare, internet-based trading can involve technical risks related, but not limited to, Internet connection, software or hardware failures or delays. Duplikium implements a backup system to minimize such occurrences, but is not responsible for any losses or missed trading opportunities as a result of communication failures, disruptions or unexpected system failures.

TRADEMARKS DISCLAIMER
All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
Any product names, logos, brands, and other trademarks or images featured or referred to within the trade-copier.com or duplikium.com website are the property of their respective trademark holders. These trademark holders are not affiliated with Duplikium, our products, or our websites. They do not sponsor or endorse Duplikium or any of our products.

HIGH-FREQUENCY TRADING (HFT) DISCLAIMER
High-Frequency Trading (HFT) strategies are accepted on the Duplikium platform as long as they remain within reasonable and standard operational practices.
However, Duplikium reserves the right, at its sole discretion, to suspend or disable any Client account at any time and without prior notice if the usage of HFT — or any other strategy — negatively impacts the performance, security, or availability of the service for other users.
It is strongly recommended that the Client intending to run HFT strategies contact Duplikium in advance to assess the technical feasibility and compatibility with the platform. Based on the Client’s use case, Duplikium may fine-tune the setup to ensure system stability and optimal operation.
Duplikium Copyright 2013-

Privacy Policy | Terms of Use | Business Conditions

www.trade-copier.com | www.duplikium.com
Duplikium Sàrl registered in Switzerland under CHE-433.550.864, who is registered address is rue de la Serre 4, 2000 Neuchâtel, Switzerland

Modal Title

Facebook Twitter LinkedIn Telegram