Update a copytrade's config (partial)
curl --request PATCH \
--url https://api.bravadotrade.com/v2/trade/copytrade/{id} \
--header 'Content-Type: application/json' \
--data '
{
"leader_address": "<string>",
"leader_username": "<string>",
"status": "ACTIVE",
"market_ids_include": [
"<string>"
],
"market_ids_exclude": [
"<string>"
],
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"buy_enabled": true,
"buy_order_type": "MARKET",
"buy_size_mode": "PCT_OF_LEADER_TRADE",
"buy_size_value": 123,
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_insufficient_usdc_action": "BUY_MAX",
"buy_time_in_force": "GTC",
"buy_min_for_percent": true,
"sell_enabled": true,
"sell_order_type": "MARKET",
"sell_size_mode": "PCT_OF_LEADER_TRADE",
"sell_size_value": 123,
"sell_insufficient_shares_action": "SELL_MAX",
"is_simulation": true,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"take_profit_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"stop_loss_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"close_at_price_cents": 5000,
"max_hold_seconds": 2
}
'import requests
url = "https://api.bravadotrade.com/v2/trade/copytrade/{id}"
payload = {
"leader_address": "<string>",
"leader_username": "<string>",
"status": "ACTIVE",
"market_ids_include": ["<string>"],
"market_ids_exclude": ["<string>"],
"tags_include": ["<string>"],
"tags_exclude": ["<string>"],
"buy_enabled": True,
"buy_order_type": "MARKET",
"buy_size_mode": "PCT_OF_LEADER_TRADE",
"buy_size_value": 123,
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_insufficient_usdc_action": "BUY_MAX",
"buy_time_in_force": "GTC",
"buy_min_for_percent": True,
"sell_enabled": True,
"sell_order_type": "MARKET",
"sell_size_mode": "PCT_OF_LEADER_TRADE",
"sell_size_value": 123,
"sell_insufficient_shares_action": "SELL_MAX",
"is_simulation": True,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"take_profit_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"stop_loss_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"close_at_price_cents": 5000,
"max_hold_seconds": 2
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leader_address: '<string>',
leader_username: '<string>',
status: 'ACTIVE',
market_ids_include: ['<string>'],
market_ids_exclude: ['<string>'],
tags_include: ['<string>'],
tags_exclude: ['<string>'],
buy_enabled: true,
buy_order_type: 'MARKET',
buy_size_mode: 'PCT_OF_LEADER_TRADE',
buy_size_value: 123,
buy_min_trade_size: 123,
buy_max_trade_size: 123,
buy_insufficient_usdc_action: 'BUY_MAX',
buy_time_in_force: 'GTC',
buy_min_for_percent: true,
sell_enabled: true,
sell_order_type: 'MARKET',
sell_size_mode: 'PCT_OF_LEADER_TRADE',
sell_size_value: 123,
sell_insufficient_shares_action: 'SELL_MAX',
is_simulation: true,
copy_start_date: '2023-11-07T05:31:56Z',
copy_end_date: '2023-11-07T05:31:56Z',
take_profit_levels: [{trigger_bps: 500000, portion_bps: 5000}],
stop_loss_levels: [{trigger_bps: 500000, portion_bps: 5000}],
close_at_price_cents: 5000,
max_hold_seconds: 2
})
};
fetch('https://api.bravadotrade.com/v2/trade/copytrade/{id}', 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.bravadotrade.com/v2/trade/copytrade/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'leader_address' => '<string>',
'leader_username' => '<string>',
'status' => 'ACTIVE',
'market_ids_include' => [
'<string>'
],
'market_ids_exclude' => [
'<string>'
],
'tags_include' => [
'<string>'
],
'tags_exclude' => [
'<string>'
],
'buy_enabled' => true,
'buy_order_type' => 'MARKET',
'buy_size_mode' => 'PCT_OF_LEADER_TRADE',
'buy_size_value' => 123,
'buy_min_trade_size' => 123,
'buy_max_trade_size' => 123,
'buy_insufficient_usdc_action' => 'BUY_MAX',
'buy_time_in_force' => 'GTC',
'buy_min_for_percent' => true,
'sell_enabled' => true,
'sell_order_type' => 'MARKET',
'sell_size_mode' => 'PCT_OF_LEADER_TRADE',
'sell_size_value' => 123,
'sell_insufficient_shares_action' => 'SELL_MAX',
'is_simulation' => true,
'copy_start_date' => '2023-11-07T05:31:56Z',
'copy_end_date' => '2023-11-07T05:31:56Z',
'take_profit_levels' => [
[
'trigger_bps' => 500000,
'portion_bps' => 5000
]
],
'stop_loss_levels' => [
[
'trigger_bps' => 500000,
'portion_bps' => 5000
]
],
'close_at_price_cents' => 5000,
'max_hold_seconds' => 2
]),
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.bravadotrade.com/v2/trade/copytrade/{id}"
payload := strings.NewReader("{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.bravadotrade.com/v2/trade/copytrade/{id}")
.header("Content-Type", "application/json")
.body("{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bravadotrade.com/v2/trade/copytrade/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"leader_address": "<string>",
"status": "<string>",
"market_ids_include": [
"<string>"
],
"market_ids_exclude": [
"<string>"
],
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"buy_enabled": true,
"buy_order_type": "<string>",
"buy_size_mode": "<string>",
"buy_size_value": 123,
"buy_insufficient_usdc_action": "<string>",
"buy_time_in_force": "<string>",
"sell_enabled": true,
"sell_order_type": "<string>",
"sell_size_mode": "<string>",
"sell_insufficient_shares_action": "<string>",
"is_simulation": true,
"take_profit_levels": [
{
"kind": "TAKE_PROFIT",
"trigger_bps": 123,
"portion_bps": 123,
"sort_order": 123
}
],
"stop_loss_levels": [
{
"kind": "TAKE_PROFIT",
"trigger_bps": 123,
"portion_bps": 123,
"sort_order": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"leader_username": "<string>",
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_min_for_percent": true,
"sell_size_value": 123,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"close_at_price_cents": 123,
"max_hold_seconds": 123
}trade.copytrade
Update a copytrade's config (partial)
All fields optional; only provided fields change.
PATCH
/
v2
/
trade
/
copytrade
/
{id}
Update a copytrade's config (partial)
curl --request PATCH \
--url https://api.bravadotrade.com/v2/trade/copytrade/{id} \
--header 'Content-Type: application/json' \
--data '
{
"leader_address": "<string>",
"leader_username": "<string>",
"status": "ACTIVE",
"market_ids_include": [
"<string>"
],
"market_ids_exclude": [
"<string>"
],
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"buy_enabled": true,
"buy_order_type": "MARKET",
"buy_size_mode": "PCT_OF_LEADER_TRADE",
"buy_size_value": 123,
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_insufficient_usdc_action": "BUY_MAX",
"buy_time_in_force": "GTC",
"buy_min_for_percent": true,
"sell_enabled": true,
"sell_order_type": "MARKET",
"sell_size_mode": "PCT_OF_LEADER_TRADE",
"sell_size_value": 123,
"sell_insufficient_shares_action": "SELL_MAX",
"is_simulation": true,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"take_profit_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"stop_loss_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"close_at_price_cents": 5000,
"max_hold_seconds": 2
}
'import requests
url = "https://api.bravadotrade.com/v2/trade/copytrade/{id}"
payload = {
"leader_address": "<string>",
"leader_username": "<string>",
"status": "ACTIVE",
"market_ids_include": ["<string>"],
"market_ids_exclude": ["<string>"],
"tags_include": ["<string>"],
"tags_exclude": ["<string>"],
"buy_enabled": True,
"buy_order_type": "MARKET",
"buy_size_mode": "PCT_OF_LEADER_TRADE",
"buy_size_value": 123,
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_insufficient_usdc_action": "BUY_MAX",
"buy_time_in_force": "GTC",
"buy_min_for_percent": True,
"sell_enabled": True,
"sell_order_type": "MARKET",
"sell_size_mode": "PCT_OF_LEADER_TRADE",
"sell_size_value": 123,
"sell_insufficient_shares_action": "SELL_MAX",
"is_simulation": True,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"take_profit_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"stop_loss_levels": [
{
"trigger_bps": 500000,
"portion_bps": 5000
}
],
"close_at_price_cents": 5000,
"max_hold_seconds": 2
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leader_address: '<string>',
leader_username: '<string>',
status: 'ACTIVE',
market_ids_include: ['<string>'],
market_ids_exclude: ['<string>'],
tags_include: ['<string>'],
tags_exclude: ['<string>'],
buy_enabled: true,
buy_order_type: 'MARKET',
buy_size_mode: 'PCT_OF_LEADER_TRADE',
buy_size_value: 123,
buy_min_trade_size: 123,
buy_max_trade_size: 123,
buy_insufficient_usdc_action: 'BUY_MAX',
buy_time_in_force: 'GTC',
buy_min_for_percent: true,
sell_enabled: true,
sell_order_type: 'MARKET',
sell_size_mode: 'PCT_OF_LEADER_TRADE',
sell_size_value: 123,
sell_insufficient_shares_action: 'SELL_MAX',
is_simulation: true,
copy_start_date: '2023-11-07T05:31:56Z',
copy_end_date: '2023-11-07T05:31:56Z',
take_profit_levels: [{trigger_bps: 500000, portion_bps: 5000}],
stop_loss_levels: [{trigger_bps: 500000, portion_bps: 5000}],
close_at_price_cents: 5000,
max_hold_seconds: 2
})
};
fetch('https://api.bravadotrade.com/v2/trade/copytrade/{id}', 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.bravadotrade.com/v2/trade/copytrade/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'leader_address' => '<string>',
'leader_username' => '<string>',
'status' => 'ACTIVE',
'market_ids_include' => [
'<string>'
],
'market_ids_exclude' => [
'<string>'
],
'tags_include' => [
'<string>'
],
'tags_exclude' => [
'<string>'
],
'buy_enabled' => true,
'buy_order_type' => 'MARKET',
'buy_size_mode' => 'PCT_OF_LEADER_TRADE',
'buy_size_value' => 123,
'buy_min_trade_size' => 123,
'buy_max_trade_size' => 123,
'buy_insufficient_usdc_action' => 'BUY_MAX',
'buy_time_in_force' => 'GTC',
'buy_min_for_percent' => true,
'sell_enabled' => true,
'sell_order_type' => 'MARKET',
'sell_size_mode' => 'PCT_OF_LEADER_TRADE',
'sell_size_value' => 123,
'sell_insufficient_shares_action' => 'SELL_MAX',
'is_simulation' => true,
'copy_start_date' => '2023-11-07T05:31:56Z',
'copy_end_date' => '2023-11-07T05:31:56Z',
'take_profit_levels' => [
[
'trigger_bps' => 500000,
'portion_bps' => 5000
]
],
'stop_loss_levels' => [
[
'trigger_bps' => 500000,
'portion_bps' => 5000
]
],
'close_at_price_cents' => 5000,
'max_hold_seconds' => 2
]),
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.bravadotrade.com/v2/trade/copytrade/{id}"
payload := strings.NewReader("{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.bravadotrade.com/v2/trade/copytrade/{id}")
.header("Content-Type", "application/json")
.body("{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bravadotrade.com/v2/trade/copytrade/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"leader_address\": \"<string>\",\n \"leader_username\": \"<string>\",\n \"status\": \"ACTIVE\",\n \"market_ids_include\": [\n \"<string>\"\n ],\n \"market_ids_exclude\": [\n \"<string>\"\n ],\n \"tags_include\": [\n \"<string>\"\n ],\n \"tags_exclude\": [\n \"<string>\"\n ],\n \"buy_enabled\": true,\n \"buy_order_type\": \"MARKET\",\n \"buy_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"buy_size_value\": 123,\n \"buy_min_trade_size\": 123,\n \"buy_max_trade_size\": 123,\n \"buy_insufficient_usdc_action\": \"BUY_MAX\",\n \"buy_time_in_force\": \"GTC\",\n \"buy_min_for_percent\": true,\n \"sell_enabled\": true,\n \"sell_order_type\": \"MARKET\",\n \"sell_size_mode\": \"PCT_OF_LEADER_TRADE\",\n \"sell_size_value\": 123,\n \"sell_insufficient_shares_action\": \"SELL_MAX\",\n \"is_simulation\": true,\n \"copy_start_date\": \"2023-11-07T05:31:56Z\",\n \"copy_end_date\": \"2023-11-07T05:31:56Z\",\n \"take_profit_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"stop_loss_levels\": [\n {\n \"trigger_bps\": 500000,\n \"portion_bps\": 5000\n }\n ],\n \"close_at_price_cents\": 5000,\n \"max_hold_seconds\": 2\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"leader_address": "<string>",
"status": "<string>",
"market_ids_include": [
"<string>"
],
"market_ids_exclude": [
"<string>"
],
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"buy_enabled": true,
"buy_order_type": "<string>",
"buy_size_mode": "<string>",
"buy_size_value": 123,
"buy_insufficient_usdc_action": "<string>",
"buy_time_in_force": "<string>",
"sell_enabled": true,
"sell_order_type": "<string>",
"sell_size_mode": "<string>",
"sell_insufficient_shares_action": "<string>",
"is_simulation": true,
"take_profit_levels": [
{
"kind": "TAKE_PROFIT",
"trigger_bps": 123,
"portion_bps": 123,
"sort_order": 123
}
],
"stop_loss_levels": [
{
"kind": "TAKE_PROFIT",
"trigger_bps": 123,
"portion_bps": 123,
"sort_order": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"leader_username": "<string>",
"buy_min_trade_size": 123,
"buy_max_trade_size": 123,
"buy_min_for_percent": true,
"sell_size_value": 123,
"copy_start_date": "2023-11-07T05:31:56Z",
"copy_end_date": "2023-11-07T05:31:56Z",
"close_at_price_cents": 123,
"max_hold_seconds": 123
}Path Parameters
Minimum string length:
1Body
application/json
Minimum string length:
4Available options:
ACTIVE Available options:
MARKET Available options:
PCT_OF_LEADER_TRADE Available options:
BUY_MAX Available options:
GTC Available options:
MARKET sell_size_mode
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>Option 5 · enum<string>
Available options:
PCT_OF_LEADER_TRADE Available options:
SELL_MAX Show child attributes
Show child attributes
Show child attributes
Show child attributes
Required range:
1 <= x <= 9999Required range:
x >= 1Response
200 - application/json
Default Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I