• 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)
      • NinjaTrader (Beta)
      • Fortex (Beta)
    • 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)
      • NinjaTrader (Beta)
      • Fortex (Beta)
    • 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 existing accounts in your Trade Copier cockpit

URL: https://www.trade-copier.com/webservice/v4/account/getAccounts.php
The request may specify an optional filter object containing a single account_id that you want to select, or an array of IDs. If the filter is empty or absent, it will select all your accounts.

Response: JSON object list

Field NameField TypeField Description
account_id string Unique identifier of the account
type int 0=Master or 1=Slave
name string Custom account name
broker string mt4, mt5, ctrader, fxcm_fc or lmax (always in lower case)
login string Your broker account login
account string Account name
password string The account's password
server string MT4: IG-DEMO, FxPro.com-Real02, Ava-Real 1, etc.
MT5: ActivTrades-Server, Binary.com-Server, FxPro-MT5, etc.
cTrader: leave blank
LMax Demo: https://web-order.london-demo.lmax.com
LMax Live: https://api.lmaxtrader.com
FXCM_FC: http://www.fxcorporate.com/Hosts.jsp
environment string Real or Demo
status int The account is 0=disabled, 1=enabled
state string Last state of the account:
CONNECTED
DISCONNECTED
SYMBOL_NOT_FOUND
ORDER_FAILED
ORDER_FAILED_MARGIN
INVESTOR_PASSWORD
SELLOUT_SL
SELLOUT_TP
CLOSE_ONLY_SL
CLOSE_ONLY_TP
FROZEN_SL
FROZEN_TP
EMPTY_EWALLET
NONE
groupid string One of your existing templates's Id. Empty if none are assigned
subscription_key string Unique key of the subscription assigned to the account. Empty if none are assigned
subscription_name string Name of the subscription assigned to the account. Empty if none are assigned
expiration string Expiration date of the subscription assigned to the account. Empty if none are assigned
pending int Copy pending order is 0=disabled, 1=enabled
stop_loss int Copy StopLoss is 0=disabled, 1=enabled
take_profit int Copy TakeProfit is 0=disabled, 1=enabled
comment string Custom comment that appears in MT4, MT5 and cTrader  terminal trade comment
alert_email int Send warning email for account disconnection is 0=disabled, 1=enabled
alert_sms int Send warning sms for account disconnection is 0=disabled, 1=enabled
alert_email_failed int Send warning email for failed copied orders is 0=disabled, 1=enabled
alert_sms_failed int Send warning sms for failed copied orders is 0=disabled, 1=enabled
globalstoploss int Global account StopLoss is 0=disabled, 1=enabled
globalstoplosstype int Global account StopLoss is 0=Close Only, 1=Sell Out, 2=Frozen
globalstoplossvalue float Global account StopLoss
globatakeprofit int Global account TakeProfit is 0=disabled, 1=enabled
globaltakeprofitvalue float Global account TakeProfit
globaltakeprofittype int Global account TakeProfit is 0=Close Only, 1=Sell Out, 2=Frozen
balance string Updated after each trade and every 5 minutes. Balance should be used carefully since it is not updated regularly
equity string Updated after each trade and every 5 minutes. Equity should be used carefully since it is not updated regularly
free_margin string Updated after each trade and every 5 minutes. FreeMargin should be used carefully since it is not updated regularly
credit string Updated after each trade and every 5 minutes. Credit should be used carefully since it is not updated regularly
ccy string Account currency
mode int Accounting type: 0: Hedging, 1:Netting
open_trades int Number of open trades on the account
lastUpdate string Date and time of last update on the account
access_token string  Access token for ctrader
refresh_token string Refresh token for ctrader
expiry_token string Expiry token for ctrader
account string Account name for ctrader

 

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/account/getAccounts.php";
$headers =  array(
	'Content-Type: application/x-www-form-urlencoded',
	'Auth-Username: [[USERNAME]]',
	'Auth-Token: [[TOKEN]]',
);

// 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);

$filter = ['account_id' => 'ABC'];
//$filter = ['account_id' => ['ABC', 'DEF']];
//$filter = [];

curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($filter));

// Execute request
$json = json_decode(curl_exec($ch));

// Close connection
curl_close($ch);

//We access the existing account(s) list
if(array_key_exists('accounts', $json))
{
	echo '<table id="api_data">';

	foreach($json->accounts as $row) {
		foreach($row as $key => $val) {
			echo '<th>'.$key.'</th>';
		}
		break;
	}

	foreach($json->accounts as $account)
	{
		echo '<tr>';
		foreach($account as $key => $val)
		{
			echo '<td>'.$val.'</td>';
		}
		echo '</tr>';
	}

	echo '</table>';
}
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 (beta)

Fortex (beta)

NinjaTrader (beta)

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 SA registered in Switzerland under CHE-433.550.864, registered address is Faubourg du Lac 2, 2000 Neuchâtel, Switzerland

Modal Title

Facebook Twitter LinkedIn Telegram