Copy Trading
Create or update a copy trading config
Creates or updates a single copy trading rule: link a follower account to a leader account for a specific symbol with a quantity ratio.
If a config already exists for the same follower+symbol combination, it is updated (upserted).
Config changes are blocked while leader or follower accounts have open positions in the relevant symbol.
POST
/
trade
/
copy
/
config
Create or update a copy trading config
curl --request POST \
--url https://api.hyperprop.com/trade/copy/config \
--header 'Content-Type: application/json' \
--data '
{
"follower_account_id": "660e8400-e29b-41d4-a716-446655440001",
"group_name": "group_a",
"leader_account_id": "550e8400-e29b-41d4-a716-446655440000",
"ratio": 1,
"symbol": "ESH6"
}
'import requests
url = "https://api.hyperprop.com/trade/copy/config"
payload = {
"follower_account_id": "660e8400-e29b-41d4-a716-446655440001",
"group_name": "group_a",
"leader_account_id": "550e8400-e29b-41d4-a716-446655440000",
"ratio": 1,
"symbol": "ESH6"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
follower_account_id: '660e8400-e29b-41d4-a716-446655440001',
group_name: 'group_a',
leader_account_id: '550e8400-e29b-41d4-a716-446655440000',
ratio: 1,
symbol: 'ESH6'
})
};
fetch('https://api.hyperprop.com/trade/copy/config', 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://api.hyperprop.com/trade/copy/config",
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([
'follower_account_id' => '660e8400-e29b-41d4-a716-446655440001',
'group_name' => 'group_a',
'leader_account_id' => '550e8400-e29b-41d4-a716-446655440000',
'ratio' => 1,
'symbol' => 'ESH6'
]),
CURLOPT_HTTPHEADER => [
"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://api.hyperprop.com/trade/copy/config"
payload := strings.NewReader("{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.hyperprop.com/trade/copy/config")
.header("Content-Type", "application/json")
.body("{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/copy/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}"
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"follower_account_id": "2a9b1b83-7434-4510-94bc-aac7f92bfaf2",
"group_name": "150k group",
"id": "290eae9e-7a6c-4c19-8a68-232797189473",
"is_active": true,
"leader_account_id": "0b547750-8a5c-4396-9665-d9079511b822",
"ratio": 1,
"symbol": "*"
},
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "RATE_LIMITED",
"data": null,
"error": "Rate limit exceeded for order submissions. Max 10 requests per second per account. Retry after 0.1 seconds.",
"rate_limit": {
"limit": 10,
"remaining": 0,
"reset": 1711800125,
"retry_after": 0.1
},
"success": false
}Body
application/json
Request to add/update copy config
The follower account ID
The leader account ID
Copy ratio (whole number 1 to 10). 1 = same quantity, 2 = double, 3 = triple
Optional group label. If omitted/empty, defaults to "default".
Optional contract symbol (e.g., "ESH6"). If omitted/empty, uses "*" (any symbol)
Response
Config saved
Related topics
Bulk update copy trading group followersDelete a copy trading configDelete all copy trading configsGet copy trading configurationToggle copy config active state⌘I
Create or update a copy trading config
curl --request POST \
--url https://api.hyperprop.com/trade/copy/config \
--header 'Content-Type: application/json' \
--data '
{
"follower_account_id": "660e8400-e29b-41d4-a716-446655440001",
"group_name": "group_a",
"leader_account_id": "550e8400-e29b-41d4-a716-446655440000",
"ratio": 1,
"symbol": "ESH6"
}
'import requests
url = "https://api.hyperprop.com/trade/copy/config"
payload = {
"follower_account_id": "660e8400-e29b-41d4-a716-446655440001",
"group_name": "group_a",
"leader_account_id": "550e8400-e29b-41d4-a716-446655440000",
"ratio": 1,
"symbol": "ESH6"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
follower_account_id: '660e8400-e29b-41d4-a716-446655440001',
group_name: 'group_a',
leader_account_id: '550e8400-e29b-41d4-a716-446655440000',
ratio: 1,
symbol: 'ESH6'
})
};
fetch('https://api.hyperprop.com/trade/copy/config', 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://api.hyperprop.com/trade/copy/config",
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([
'follower_account_id' => '660e8400-e29b-41d4-a716-446655440001',
'group_name' => 'group_a',
'leader_account_id' => '550e8400-e29b-41d4-a716-446655440000',
'ratio' => 1,
'symbol' => 'ESH6'
]),
CURLOPT_HTTPHEADER => [
"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://api.hyperprop.com/trade/copy/config"
payload := strings.NewReader("{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.hyperprop.com/trade/copy/config")
.header("Content-Type", "application/json")
.body("{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/copy/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"follower_account_id\": \"660e8400-e29b-41d4-a716-446655440001\",\n \"group_name\": \"group_a\",\n \"leader_account_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"ratio\": 1,\n \"symbol\": \"ESH6\"\n}"
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"follower_account_id": "2a9b1b83-7434-4510-94bc-aac7f92bfaf2",
"group_name": "150k group",
"id": "290eae9e-7a6c-4c19-8a68-232797189473",
"is_active": true,
"leader_account_id": "0b547750-8a5c-4396-9665-d9079511b822",
"ratio": 1,
"symbol": "*"
},
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "RATE_LIMITED",
"data": null,
"error": "Rate limit exceeded for order submissions. Max 10 requests per second per account. Retry after 0.1 seconds.",
"rate_limit": {
"limit": 10,
"remaining": 0,
"reset": 1711800125,
"retry_after": 0.1
},
"success": false
}