Copy Trading
Get copy trading configuration
Returns the full copy trading setup for the authenticated user: all leader-follower mappings, active/inactive state, group names, symbols, and ratios.
Also indicates whether the config is currently locked (positions open on leader or follower accounts prevent config changes).
GET
/
trade
/
copy
/
config
Get copy trading configuration
curl --request GET \
--url https://api.hyperprop.com/trade/copy/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyperprop.com/trade/copy/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/trade/copy/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hyperprop.com/trade/copy/config")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"configs": [
{
"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": "*"
}
],
"group_count": 1,
"is_locked": false,
"leader_account_id": "0b547750-8a5c-4396-9665-d9079511b822",
"lock_reason": null
},
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}Authorizations
Response
Copy trading configuration
Full copy config for a user (API response)
⌘I
Get copy trading configuration
curl --request GET \
--url https://api.hyperprop.com/trade/copy/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyperprop.com/trade/copy/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/trade/copy/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hyperprop.com/trade/copy/config")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"configs": [
{
"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": "*"
}
],
"group_count": 1,
"is_locked": false,
"leader_account_id": "0b547750-8a5c-4396-9665-d9079511b822",
"lock_reason": null
},
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}