• Home
  • Cockpit
  • How To
    • Get Started!
      • Remote Trade Copier
      • Signal Follower
      • Signal Provider
    • Knowledge Base & 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
    • Referral Program
    • Media Kit
  • Pricing
    • Pricing Overview
    • Free Trial
    • Subscription Plan
    • Prepay Plan
    • Add-ons
Register Register for FREE Login
  • Home
  • Cockpit
  • How To
    • Get Started!
      • Remote Trade Copier
      • Signal Follower
      • Signal Provider
    • Knowledge Base & 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
    • Referral Program
    • Media Kit
  • Pricing
    • Pricing Overview
    • Free Trial
    • Subscription Plan
    • Prepay Plan
    • Add-ons

1. Request an access token (Basic Authentication)

To obtain an access token, send a POST request to:

POST https://www.trade-copier.com/webservice/v4/access/getToken.php
Authorization: Basic <base64(username:password)>

How Basic Authentication works

Basic Authentication sends your cockpit username and password in a single header. The format is:

username:password

This string is then encoded using Base64 and placed in the Authorization header:

Authorization: Basic <base64-encoded-credentials>

For example, if your username is john and your password is MyPass123, the raw string is:

john:MyPass123

After Base64 encoding, it becomes something like:

am9objpNeVBhc3MxMjM=

Most HTTP clients (PHP, Postman, etc.) will generate this header automatically when you provide a username and password.

Example (PHP)

<?php

$username = "your_username";
$password = "your_password";

// Build the raw "username:password" string
$credentials = $username . ":" . $password;

// Encode it in Base64 (this is what Basic Auth requires)
$base64Credentials = base64_encode($credentials);

$ch = curl_init("https://www.trade-copier.com/webservice/v4/access/getToken.php");

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Add the Authorization header manually
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Basic $base64Credentials"
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

Example response

The endpoint returns a JSON object containing your access token and its expiration timestamp:

{
    "token": "eyFakeTokenHeader.eyFakeTokenPayload.abc123FakeSignature",
    "exp": 1771431712
}

The token field contains your JWT access token. The exp field is the expiration time expressed as a Unix timestamp.


2. Use the token for all API requests (Bearer Authentication)

Once you have your token, include it in the Authorization header for every API call:

Authorization: Bearer <your_token_here>

Example (PHP)

<?php
$token = "your_token_here";

$ch = curl_init("https://www.trade-copier.com/webservice/v4/your/endpoint");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer $token"
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

3. Token expiration (48 hours)

Access tokens are valid for 48 hours. After this period, the token expires and the API will reject requests with an authentication error.

You may request a new token at any time — you do not need to wait for the previous one to expire. We recommend refreshing your token before the 48‑hour limit to avoid interruptions.


4. Summary

  • Step 1: Request a token from /webservice/v4/access/getToken.php

    using Basic Auth: Authorization: Basic <base64(username:password)>
  • Step 2: Use Authorization: Bearer <token> for all API calls.
  • Token validity: Tokens expire after 48 hours. Request a new one before expiration.
  • Security: All requests must use HTTPS (SSL).
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

Referral Program

Media Kit

SUPPORTED PLATFORMS

MT4 Brokers

MT5 Brokers

cTrader Brokers

TradingView

FXCM

LMAX

DXTrade

Tradovate (beta)

Fortex (beta)

NinjaTrader (beta)

PRICING

Free Trial

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