Save copy trading groups
curl --request POST \
--url https://developers.myfundedperpetuals.com/v1/copy-trading \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"groups": [
{
"enabled": true,
"source_account_id": "<string>",
"targets": [
{
"account_id": "<string>",
"multiplier_bps": 10500
}
],
"config_id": "<string>"
}
],
"deleted_config_ids": [
"<string>"
]
}
'import requests
url = "https://developers.myfundedperpetuals.com/v1/copy-trading"
payload = {
"groups": [
{
"enabled": True,
"source_account_id": "<string>",
"targets": [
{
"account_id": "<string>",
"multiplier_bps": 10500
}
],
"config_id": "<string>"
}
],
"deleted_config_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
groups: [
{
enabled: true,
source_account_id: '<string>',
targets: [{account_id: '<string>', multiplier_bps: 10500}],
config_id: '<string>'
}
],
deleted_config_ids: ['<string>']
})
};
fetch('https://developers.myfundedperpetuals.com/v1/copy-trading', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developers.myfundedperpetuals.com/v1/copy-trading",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'groups' => [
[
'enabled' => true,
'source_account_id' => '<string>',
'targets' => [
[
'account_id' => '<string>',
'multiplier_bps' => 10500
]
],
'config_id' => '<string>'
]
],
'deleted_config_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developers.myfundedperpetuals.com/v1/copy-trading"
payload := strings.NewReader("{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developers.myfundedperpetuals.com/v1/copy-trading")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/copy-trading")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"ok": true,
"config_ids": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}Accounts
Save copy trading groups
Explicitly upserts submitted groups and deletes only deleted_config_ids. Requires trade scope and access to all existing and submitted members. Omitted groups remain unchanged. Disable a group before deleting it or changing its lead. New groups omit config_id; a retry without an existing config_id can create another disabled group, so read back state after an ambiguous response before retrying.
POST
/
v1
/
copy-trading
Save copy trading groups
curl --request POST \
--url https://developers.myfundedperpetuals.com/v1/copy-trading \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"groups": [
{
"enabled": true,
"source_account_id": "<string>",
"targets": [
{
"account_id": "<string>",
"multiplier_bps": 10500
}
],
"config_id": "<string>"
}
],
"deleted_config_ids": [
"<string>"
]
}
'import requests
url = "https://developers.myfundedperpetuals.com/v1/copy-trading"
payload = {
"groups": [
{
"enabled": True,
"source_account_id": "<string>",
"targets": [
{
"account_id": "<string>",
"multiplier_bps": 10500
}
],
"config_id": "<string>"
}
],
"deleted_config_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
groups: [
{
enabled: true,
source_account_id: '<string>',
targets: [{account_id: '<string>', multiplier_bps: 10500}],
config_id: '<string>'
}
],
deleted_config_ids: ['<string>']
})
};
fetch('https://developers.myfundedperpetuals.com/v1/copy-trading', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developers.myfundedperpetuals.com/v1/copy-trading",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'groups' => [
[
'enabled' => true,
'source_account_id' => '<string>',
'targets' => [
[
'account_id' => '<string>',
'multiplier_bps' => 10500
]
],
'config_id' => '<string>'
]
],
'deleted_config_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developers.myfundedperpetuals.com/v1/copy-trading"
payload := strings.NewReader("{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developers.myfundedperpetuals.com/v1/copy-trading")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/copy-trading")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"groups\": [\n {\n \"enabled\": true,\n \"source_account_id\": \"<string>\",\n \"targets\": [\n {\n \"account_id\": \"<string>\",\n \"multiplier_bps\": 10500\n }\n ],\n \"config_id\": \"<string>\"\n }\n ],\n \"deleted_config_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"ok": true,
"config_ids": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}Authorizations
API key beginning with fp_live_ (live keys, served at developers.myfundedperpetuals.com) or fp_test_ (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with 401 and a message naming the correct host.
Body
application/json
Response
All submitted changes committed atomically.
Show child attributes
Show child attributes